summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/localplayer.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index b41f1d971..2bc63849f 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -1333,7 +1333,16 @@ void LocalPlayer::pickedUp(const ItemInfo &itemInfo, int amount)
if (mMap && config.getBoolValue("showpickupparticle"))
{
// Show pickup notification
- addMessageToQueue(itemInfo.getName(), UserPalette::PICKUP_INFO);
+ if (amount > 1)
+ {
+ addMessageToQueue(strprintf("%d x %s", amount,
+ itemInfo.getName().c_str()), UserPalette::PICKUP_INFO);
+ }
+ else
+ {
+ addMessageToQueue(itemInfo.getName(),
+ UserPalette::PICKUP_INFO);
+ }
}
}
}