From 4fb8f9f0905038f3180f108ec56b2a326ceb3483 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 6 Oct 2012 03:54:00 +0300 Subject: Add particle effect miss-effect-id to items and monsters. --- src/resources/itemdb.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/resources/itemdb.cpp') 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); -- cgit v1.2.3-70-g09d2