diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-23 23:19:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-23 23:19:30 +0300 |
commit | 91075015ad4b5bd576c1a5668a11ea0227dd6bd1 (patch) | |
tree | 181df7013e6bfdd41cad4f2e9f18ad8944b79d04 /src/resources/itemdb.cpp | |
parent | 66f7df70fb03d487ae0c667adec3d5ad6e11721e (diff) | |
download | plus-91075015ad4b5bd576c1a5668a11ea0227dd6bd1.tar.gz plus-91075015ad4b5bd576c1a5668a11ea0227dd6bd1.tar.bz2 plus-91075015ad4b5bd576c1a5668a11ea0227dd6bd1.tar.xz plus-91075015ad4b5bd576c1a5668a11ea0227dd6bd1.zip |
add support for attacksky and attackwater actions.
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r-- | src/resources/itemdb.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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); |