diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-06 03:54:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-06 03:54:00 +0300 |
commit | 4fb8f9f0905038f3180f108ec56b2a326ceb3483 (patch) | |
tree | 94b221f6bc81e07d565d2828dac078f471854b81 /src/resources/monsterdb.cpp | |
parent | df9a705c331da29cb0582539a817f68c79d4f267 (diff) | |
download | ManaVerse-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.gz ManaVerse-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.bz2 ManaVerse-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.xz ManaVerse-4fb8f9f0905038f3180f108ec56b2a326ceb3483.zip |
Add particle effect miss-effect-id to items and monsters.
Diffstat (limited to 'src/resources/monsterdb.cpp')
-rw-r--r-- | src/resources/monsterdb.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/resources/monsterdb.cpp b/src/resources/monsterdb.cpp index 3629357d1..22441c34e 100644 --- a/src/resources/monsterdb.cpp +++ b/src/resources/monsterdb.cpp @@ -192,11 +192,13 @@ void MonsterDB::load() const int id = XML::getProperty(spriteNode, "id", 0); const int effectId = XML::getProperty( spriteNode, "effect-id", paths.getIntValue("effectId")); - int hitEffectId = XML::getProperty(spriteNode, + const int hitEffectId = XML::getProperty(spriteNode, "hit-effect-id", paths.getIntValue("hitEffectId")); - int criticalHitEffectId = XML::getProperty(spriteNode, + const int criticalHitEffectId = XML::getProperty(spriteNode, "critical-hit-effect-id", paths.getIntValue("criticalHitEffectId")); + const int missEffectId = XML::getProperty(spriteNode, + "miss-effect-id", paths.getIntValue("missEffectId")); const std::string spriteAction = XML::getProperty( spriteNode, "action", "attack"); @@ -205,7 +207,8 @@ void MonsterDB::load() spriteNode, "missile-particle", ""); currentInfo->addAttack(id, spriteAction, effectId, - hitEffectId, criticalHitEffectId, missileParticle); + hitEffectId, criticalHitEffectId, missEffectId, + missileParticle); } else if (xmlNameEqual(spriteNode, "particlefx")) { |