summaryrefslogtreecommitdiff
path: root/src/resources/monsterdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-06 03:54:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-06 03:54:00 +0300
commit4fb8f9f0905038f3180f108ec56b2a326ceb3483 (patch)
tree94b221f6bc81e07d565d2828dac078f471854b81 /src/resources/monsterdb.cpp
parentdf9a705c331da29cb0582539a817f68c79d4f267 (diff)
downloadplus-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.gz
plus-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.bz2
plus-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.xz
plus-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.cpp9
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"))
{