summaryrefslogtreecommitdiff
path: root/src/itemshortcut.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-04 17:38:19 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-04 17:38:19 +0300
commit65a88f27b994f7ade178368c569d466f6344ded6 (patch)
tree1b4bae38055b1ce31201ebb72b5c10987cba9f62 /src/itemshortcut.cpp
parenta553b3cda91aa095d88e22abcaa81701c2894334 (diff)
downloadmanaverse-65a88f27b994f7ade178368c569d466f6344ded6.tar.gz
manaverse-65a88f27b994f7ade178368c569d466f6344ded6.tar.bz2
manaverse-65a88f27b994f7ade178368c569d466f6344ded6.tar.xz
manaverse-65a88f27b994f7ade178368c569d466f6344ded6.zip
add sound effects for equip/unequip/use items for local player.
It using: "equip", "unequip", "use" effects from items. If no item effect present, fallback to same effects from player race.
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r--src/itemshortcut.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp
index 7356ff0e7..2a95c7d4e 100644
--- a/src/itemshortcut.cpp
+++ b/src/itemshortcut.cpp
@@ -133,7 +133,7 @@ void ItemShortcut::useItem(const int index) const
{
const Item *const item = inv->findItem(itemId, itemColor);
if (item && item->getQuantity())
- PlayerInfo::useEquipItem(item);
+ PlayerInfo::useEquipItem(item, true);
}
else if (itemId < SKILL_MIN_ID && spellManager)
{
@@ -161,7 +161,7 @@ void ItemShortcut::equipItem(const int index) const
if (item->isEquipment())
{
if (!item->isEquipped())
- PlayerInfo::equipItem(item);
+ PlayerInfo::equipItem(item, true);
}
}
}
@@ -181,7 +181,7 @@ void ItemShortcut::unequipItem(const int index) const
if (item->isEquipment())
{
if (item->isEquipped())
- PlayerInfo::unequipItem(item);
+ PlayerInfo::unequipItem(item, true);
}
}
}