diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-08-18 00:55:12 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-08-18 00:55:12 +0200 |
commit | 10fd0338203a46cec913859fd5e38b61fa24a30f (patch) | |
tree | 8bb8b15d69f4823104d27b135330e8455665b2c1 /src/game-server/inventory.h | |
parent | caf715fc482e700d80eab7592a4e61e4a0417294 (diff) | |
download | manaserv-10fd0338203a46cec913859fd5e38b61fa24a30f.tar.gz manaserv-10fd0338203a46cec913859fd5e38b61fa24a30f.tar.bz2 manaserv-10fd0338203a46cec913859fd5e38b61fa24a30f.tar.xz manaserv-10fd0338203a46cec913859fd5e38b61fa24a30f.zip |
Change the unequip function to make use of the item instance id.
It will make the client capable to tell which item
is to be unequipped when there are several item equipped
within a slot type, for instance.
The client has now yet to be upgraded to follow the new protocol.
Diffstat (limited to 'src/game-server/inventory.h')
-rw-r--r-- | src/game-server/inventory.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/inventory.h b/src/game-server/inventory.h index 06f55e06..39f83216 100644 --- a/src/game-server/inventory.h +++ b/src/game-server/inventory.h @@ -65,10 +65,10 @@ class Inventory /** * Unequips item from given equipment slot. - * @param equipmentSlot Where to remove item(s). + * @param itemInstance The item instance id used to know what to unequip * @returns Whether it was unequipped. */ - bool unequip(unsigned int equipmentSlot); + bool unequip(unsigned int itemInstance); /** * Inserts some items into the inventory. |