diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-09 21:31:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-09 21:31:02 +0300 |
commit | 90705929b29445a4569ff5c9ad13b7efcb304e0a (patch) | |
tree | 0dae1643b0fb33131fb918fe3a1729e879379e26 /src/being/playerinfo.h | |
parent | b3fa7a53a29a1001935514a38f140af2b816771a (diff) | |
download | plus-90705929b29445a4569ff5c9ad13b7efcb304e0a.tar.gz plus-90705929b29445a4569ff5c9ad13b7efcb304e0a.tar.bz2 plus-90705929b29445a4569ff5c9ad13b7efcb304e0a.tar.xz plus-90705929b29445a4569ff5c9ad13b7efcb304e0a.zip |
Add different use actions for items.
Can be used from chat or from custom item menu from items.xml
Diffstat (limited to 'src/being/playerinfo.h')
-rw-r--r-- | src/being/playerinfo.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/being/playerinfo.h b/src/being/playerinfo.h index 1c81d7761..004691e86 100644 --- a/src/being/playerinfo.h +++ b/src/being/playerinfo.h @@ -239,9 +239,13 @@ namespace PlayerInfo void useItem(const Item *const item, const Sfx sfx); - void useEquipItem(const Item *const item, const Sfx sfx); + void useEquipItem(const Item *const item, + const int16_t useType, + const Sfx sfx); - void useEquipItem2(const Item *const item, const Sfx sfx); + void useEquipItem2(const Item *const item, + const int16_t useType, + const Sfx sfx); void dropItem(const Item *const item, const int amount, const Sfx sfx); |