summaryrefslogtreecommitdiff
path: root/src/resources/monsterdb.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-13 09:34:46 +0000
committerIra Rice <irarice@gmail.com>2008-10-13 09:34:46 +0000
commita4d2f2c0373848fa8a886c1dddc6247b81527df3 (patch)
treeb4d0f0dcab4bd9ff06a4cd0613e26f61fffb45ce /src/resources/monsterdb.cpp
parent1c337aae30b334d99a5ec81269f2c6d35b8004ea (diff)
downloadmana-client-a4d2f2c0373848fa8a886c1dddc6247b81527df3.tar.gz
mana-client-a4d2f2c0373848fa8a886c1dddc6247b81527df3.tar.bz2
mana-client-a4d2f2c0373848fa8a886c1dddc6247b81527df3.tar.xz
mana-client-a4d2f2c0373848fa8a886c1dddc6247b81527df3.zip
Added mob particle attack effects to mobs. Inspired by the TMW patch in
their trunk client.
Diffstat (limited to 'src/resources/monsterdb.cpp')
-rw-r--r--src/resources/monsterdb.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/monsterdb.cpp b/src/resources/monsterdb.cpp
index 73e9d666..8d8dd133 100644
--- a/src/resources/monsterdb.cpp
+++ b/src/resources/monsterdb.cpp
@@ -126,6 +126,12 @@ MonsterDB::load()
}
}
+ if (xmlStrEqual(spriteNode->name, BAD_CAST "attack"))
+ {
+ std::string event = XML::getProperty(spriteNode, "particle-effect", "");
+ currentInfo->addAttackParticleEffect(event);
+ }
+
if (xmlStrEqual(spriteNode->name, BAD_CAST "particlefx"))
{
currentInfo->addParticleEffect(