summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-20 12:45:11 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-20 12:45:11 +0300
commit12596b11b89baa167704d8cddd4599c937826062 (patch)
tree9b8c5063b97fff62e97d0bd96af680b181bf1e9e /src/being
parentfa378412565f98a1ce6d438425ca34b20aaf223a (diff)
downloadplus-12596b11b89baa167704d8cddd4599c937826062.tar.gz
plus-12596b11b89baa167704d8cddd4599c937826062.tar.bz2
plus-12596b11b89baa167704d8cddd4599c937826062.tar.xz
plus-12596b11b89baa167704d8cddd4599c937826062.zip
eathena: add some missing pickup statuses.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/localplayer.cpp8
-rw-r--r--src/being/pickup.h5
2 files changed, 12 insertions, 1 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 74bef82b5..eb4dfae4e 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -844,6 +844,14 @@ void LocalPlayer::pickedUp(const ItemInfo &itemInfo, const int amount,
// TRANSLATORS: pickup error message
msg = N_("Item belongs to someone else.");
break;
+ case Pickup::MAX_AMOUNT:
+ // TRANSLATORS: pickup error message
+ msg = N_("You cant pickup this amount of items.");
+ break;
+ case Pickup::STACK_AMOUNT:
+ // TRANSLATORS: pickup error message
+ msg = N_("Your item stack has max amount.");
+ break;
default:
// TRANSLATORS: pickup error message
msg = N_("Unknown problem picking up item.");
diff --git a/src/being/pickup.h b/src/being/pickup.h
index dfa35fe20..2455d34be 100644
--- a/src/being/pickup.h
+++ b/src/being/pickup.h
@@ -33,12 +33,15 @@ namespace Pickup
enum Type
{
OKAY = 0,
+ UNKNOWN,
BAD_ITEM,
TOO_HEAVY,
TOO_FAR,
INV_FULL,
STACK_FULL,
- DROP_STEAL
+ DROP_STEAL,
+ MAX_AMOUNT,
+ STACK_AMOUNT
};
} // namespace Pickup