summaryrefslogtreecommitdiff
path: root/src/being/playerinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-04 19:19:53 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-04 19:19:53 +0300
commitdb43ad3b72fe207e6cc03a1fd341ea598d123319 (patch)
tree6d338e9e0bff66e7751d6d0866f32388bdcfe59c /src/being/playerinfo.h
parent65a88f27b994f7ade178368c569d466f6344ded6 (diff)
downloadmanaverse-db43ad3b72fe207e6cc03a1fd341ea598d123319.tar.gz
manaverse-db43ad3b72fe207e6cc03a1fd341ea598d123319.tar.bz2
manaverse-db43ad3b72fe207e6cc03a1fd341ea598d123319.tar.xz
manaverse-db43ad3b72fe207e6cc03a1fd341ea598d123319.zip
add pickup and drop sound effects.
Works like equip/unequip effects.
Diffstat (limited to 'src/being/playerinfo.h')
-rw-r--r--src/being/playerinfo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/being/playerinfo.h b/src/being/playerinfo.h
index cd454692f..eef07c584 100644
--- a/src/being/playerinfo.h
+++ b/src/being/playerinfo.h
@@ -61,6 +61,7 @@ struct PlayerInfoBackend final
IntMap mSkills;
};
+class FloorItem;
class Inventory;
class Item;
@@ -267,6 +268,10 @@ namespace PlayerInfo
void useEquipItem2(const Item *const item, bool sfx);
+ void dropItem(const Item *const item, const int amount, bool sfx);
+
+ void pickUpItem(const FloorItem *const item, bool sfx);
+
void protectItem(const int id);
void unprotectItem(const int id);