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/monsterdb.cpp | |
parent | 66f7df70fb03d487ae0c667adec3d5ad6e11721e (diff) | |
download | manaplus-91075015ad4b5bd576c1a5668a11ea0227dd6bd1.tar.gz manaplus-91075015ad4b5bd576c1a5668a11ea0227dd6bd1.tar.bz2 manaplus-91075015ad4b5bd576c1a5668a11ea0227dd6bd1.tar.xz manaplus-91075015ad4b5bd576c1a5668a11ea0227dd6bd1.zip |
add support for attacksky and attackwater actions.
Diffstat (limited to 'src/resources/monsterdb.cpp')
-rw-r--r-- | src/resources/monsterdb.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/resources/monsterdb.cpp b/src/resources/monsterdb.cpp index 769678ca6..ff7bed370 100644 --- a/src/resources/monsterdb.cpp +++ b/src/resources/monsterdb.cpp @@ -213,13 +213,17 @@ void MonsterDB::loadXmlFile(const std::string &fileName) const std::string spriteAction = XML::getProperty( spriteNode, "action", "attack"); + const std::string skySpriteAction = XML::getProperty( + spriteNode, "skyaction", "skyattack"); + const std::string waterSpriteAction = XML::getProperty( + spriteNode, "wateraction", "waterattack"); const std::string missileParticle = XML::getProperty( spriteNode, "missile-particle", ""); - currentInfo->addAttack(id, spriteAction, effectId, - hitEffectId, criticalHitEffectId, missEffectId, - missileParticle); + currentInfo->addAttack(id, spriteAction, skySpriteAction, + waterSpriteAction, effectId, hitEffectId, + criticalHitEffectId, missEffectId, missileParticle); } else if (xmlNameEqual(spriteNode, "particlefx")) { |