diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-27 20:49:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-27 20:49:31 +0300 |
commit | 4b02d01243eeb6b31c57e5220914b9e5e7c7bfe8 (patch) | |
tree | 371dac23117eb986c841b424afe5870b18604a7b /src/being | |
parent | 19125da4c29f4475aafa4bf9bf2d9400bceff657 (diff) | |
download | manaplus-4b02d01243eeb6b31c57e5220914b9e5e7c7bfe8.tar.gz manaplus-4b02d01243eeb6b31c57e5220914b9e5e7c7bfe8.tar.bz2 manaplus-4b02d01243eeb6b31c57e5220914b9e5e7c7bfe8.tar.xz manaplus-4b02d01243eeb6b31c57e5220914b9e5e7c7bfe8.zip |
Impliment packet SMSG_HOMUNCULUS_EXP 0x0b22.
For now it show homunculus exp over player ovner.
But probably need show it over homunculus.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/localplayer.cpp | 13 | ||||
-rw-r--r-- | src/being/localplayer.h | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 3ae1cd90b..abecee8de 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -1144,6 +1144,19 @@ void LocalPlayer::addXpMessage(const int change) } } +void LocalPlayer::addHomunXpMessage(const int change) +{ + if (change != 0 && mMessages.size() < 20) + { + addMessageToQueue(strprintf("%s %d %s", + // TRANSLATORS: get homunculus xp message + _("Homun"), + change, + // TRANSLATORS: get xp message + _("xp"))); + } +} + void LocalPlayer::addHpMessage(const int change) { if (change != 0 && mMessages.size() < 20) diff --git a/src/being/localplayer.h b/src/being/localplayer.h index 5fa17b7f8..50ef31052 100644 --- a/src/being/localplayer.h +++ b/src/being/localplayer.h @@ -376,6 +376,8 @@ class LocalPlayer final : public Being, void addXpMessage(const int change); + void addHomunXpMessage(const int change); + void addJobMessage(const int change); void addHpMessage(const int change); |