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/itemdb.cpp | |
parent | df9a705c331da29cb0582539a817f68c79d4f267 (diff) | |
download | mv-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.gz mv-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.bz2 mv-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.xz mv-4fb8f9f0905038f3180f108ec56b2a326ceb3483.zip |
Add particle effect miss-effect-id to items and monsters.
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r-- | src/resources/itemdb.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index 8fd4a9fdc..559015be9 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -245,6 +245,8 @@ void ItemDB::load() const int criticalEffectId = XML::getProperty( node, "critical-hit-effect-id", paths.getIntValue("criticalHitEffectId")); + const int missEffectId = XML::getProperty(node, "miss-effect-id", + paths.getIntValue("missEffectId")); SpriteDisplay display; display.image = image; @@ -305,6 +307,7 @@ void ItemDB::load() itemInfo->setMissileParticleFile(missileParticle); itemInfo->setHitEffectId(hitEffectId); itemInfo->setCriticalHitEffectId(criticalEffectId); + itemInfo->setMissEffectId(missEffectId); itemInfo->setDrawBefore(-1, parseSpriteName(drawBefore)); itemInfo->setDrawAfter(-1, parseSpriteName(drawAfter)); itemInfo->setDrawPriority(-1, drawPriority); |