From 91075015ad4b5bd576c1a5668a11ea0227dd6bd1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Jul 2013 23:19:30 +0300 Subject: add support for attacksky and attackwater actions. --- src/resources/itemdb.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/resources/itemdb.cpp') diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index 8e5551af3..73a1cf637 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -237,6 +237,10 @@ void ItemDB::loadXmlFile(const std::string &fileName, int &tagNum) std::string floor = XML::getProperty(node, "floor", ""); std::string description = XML::langProperty(node, "description", ""); std::string attackAction = XML::getProperty(node, "attack-action", ""); + std::string skyAttackAction = XML::getProperty( + node, "skyattack-action", ""); + std::string waterAttackAction = XML::getProperty( + node, "waterattack-action", ""); std::string drawBefore = XML::getProperty(node, "drawBefore", ""); std::string drawAfter = XML::getProperty(node, "drawAfter", ""); const int pet = XML::getProperty(node, "pet", 0); @@ -338,6 +342,8 @@ void ItemDB::loadXmlFile(const std::string &fileName, int &tagNum) itemInfo->setView(view); itemInfo->setWeight(weight); itemInfo->setAttackAction(attackAction); + itemInfo->setSkyAttackAction(skyAttackAction); + itemInfo->setWaterAttackAction(waterAttackAction); itemInfo->setAttackRange(attackRange); itemInfo->setMissileParticleFile(missileParticle); itemInfo->setHitEffectId(hitEffectId); -- cgit v1.2.3-60-g2f50