summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp13
1 files changed, 13 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)