From 15b8c6e64326caf9cea7e948f48cf487cef625b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 13 Feb 2011 17:59:24 +0200 Subject: Show pickedup amount in pickup particles. --- src/localplayer.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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); + } } } } -- cgit v1.2.3-70-g09d2