From 4b02d01243eeb6b31c57e5220914b9e5e7c7bfe8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Jul 2016 20:49:31 +0300 Subject: Impliment packet SMSG_HOMUNCULUS_EXP 0x0b22. For now it show homunculus exp over player ovner. But probably need show it over homunculus. --- src/being/localplayer.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/being/localplayer.cpp') 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) -- cgit v1.2.3-70-g09d2