summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-13 16:32:55 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-13 16:32:55 +0300
commit467455bf7907411918d8fb6f4113eb95df443a29 (patch)
tree5bd754447f8324514ede595494c0dae26af356e5 /src/being/localplayer.cpp
parent3bbf7407ac14ec84329ad85fd8552e36872b3476 (diff)
downloadplus-467455bf7907411918d8fb6f4113eb95df443a29.tar.gz
plus-467455bf7907411918d8fb6f4113eb95df443a29.tar.bz2
plus-467455bf7907411918d8fb6f4113eb95df443a29.tar.xz
plus-467455bf7907411918d8fb6f4113eb95df443a29.zip
Move pickup flags into separate file.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 37a960dae..9ba8b236b 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -36,6 +36,7 @@
#include "resources/map/walklayer.h"
#include "being/attributes.h"
+#include "being/pickup.h"
#include "being/playerinfo.h"
#include "being/playerrelations.h"
@@ -820,27 +821,27 @@ void LocalPlayer::pickedUp(const ItemInfo &itemInfo, const int amount,
const char* msg = nullptr;
switch (fail)
{
- case PICKUP_BAD_ITEM:
+ case Pickup::BAD_ITEM:
// TRANSLATORS: pickup error message
msg = N_("Tried to pick up nonexistent item.");
break;
- case PICKUP_TOO_HEAVY:
+ case Pickup::TOO_HEAVY:
// TRANSLATORS: pickup error message
msg = N_("Item is too heavy.");
break;
- case PICKUP_TOO_FAR:
+ case Pickup::TOO_FAR:
// TRANSLATORS: pickup error message
msg = N_("Item is too far away.");
break;
- case PICKUP_INV_FULL:
+ case Pickup::INV_FULL:
// TRANSLATORS: pickup error message
msg = N_("Inventory is full.");
break;
- case PICKUP_STACK_FULL:
+ case Pickup::STACK_FULL:
// TRANSLATORS: pickup error message
msg = N_("Stack is too big.");
break;
- case PICKUP_DROP_STEAL:
+ case Pickup::DROP_STEAL:
// TRANSLATORS: pickup error message
msg = N_("Item belongs to someone else.");
break;