summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.cpp
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2011-04-29 11:16:21 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2011-04-29 11:16:21 +0200
commit18ea964add44d3d0211785c59b28e7afdc5e45fb (patch)
treef65677e61a3b773db549a347fa6c9e8ccf1a3cd6 /src/resources/iteminfo.cpp
parentf450d1e7d0238a8126f2fe419aa019767290f9fb (diff)
downloadmana-18ea964add44d3d0211785c59b28e7afdc5e45fb.tar.gz
mana-18ea964add44d3d0211785c59b28e7afdc5e45fb.tar.bz2
mana-18ea964add44d3d0211785c59b28e7afdc5e45fb.tar.xz
mana-18ea964add44d3d0211785c59b28e7afdc5e45fb.zip
Remove default assignment of an attack action to non-weapons
This avoids log warnings for missing weapon range. Reviewed-by: thorbjorn, bcs86
Diffstat (limited to 'src/resources/iteminfo.cpp')
-rw-r--r--src/resources/iteminfo.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp
index 32331e35..ad4b311c 100644
--- a/src/resources/iteminfo.cpp
+++ b/src/resources/iteminfo.cpp
@@ -41,14 +41,6 @@ const std::string &ItemInfo::getSprite(Gender gender) const
}
}
-void ItemInfo::setAttackAction(std::string attackAction)
-{
- if (attackAction.empty())
- mAttackAction = SpriteAction::ATTACK; // (Equal to unarmed animation)
- else
- mAttackAction = attackAction;
-}
-
void ItemInfo::addSound(EquipmentSoundEvent event, const std::string &filename)
{
mSounds[event].push_back(paths.getStringValue("sfx") + filename);