summaryrefslogtreecommitdiff
path: root/src/resources/monsterinfo.h
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2010-02-10 23:46:49 -0500
committerChuck Miller <shadowmil@gmail.com>2010-02-10 23:50:23 -0500
commit85e7f2a79477712bf3082cb82e6a73c51361abb0 (patch)
treec8a42adb06e0c5ba416bd30fcd1808c1e4f26ddc /src/resources/monsterinfo.h
parent3a761a242436e521c7fa8ef3746551ac7b746308 (diff)
downloadmana-client-85e7f2a79477712bf3082cb82e6a73c51361abb0.tar.gz
mana-client-85e7f2a79477712bf3082cb82e6a73c51361abb0.tar.bz2
mana-client-85e7f2a79477712bf3082cb82e6a73c51361abb0.tar.xz
mana-client-85e7f2a79477712bf3082cb82e6a73c51361abb0.zip
Adds missile-particle attribute to items and monster attacks
To use simply add something like: missile-particle="graphics/particles/arrow.particle.xml" to the item's or monster's xml entry This will only work on equipped weapons, and on specified monster attacks. This patch also fixes a memory leak with target particles
Diffstat (limited to 'src/resources/monsterinfo.h')
-rw-r--r--src/resources/monsterinfo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/resources/monsterinfo.h b/src/resources/monsterinfo.h
index f6cec609..4e92ad02 100644
--- a/src/resources/monsterinfo.h
+++ b/src/resources/monsterinfo.h
@@ -39,6 +39,7 @@ enum MonsterSoundEvent
struct MonsterAttack
{
+ std::string missileParticle;
std::string particleEffect;
SpriteAction action;
};
@@ -81,10 +82,13 @@ class MonsterInfo
void addMonsterAttack(int id,
const std::string &particleEffect,
- SpriteAction action);
+ SpriteAction action,
+ const std::string &missileParticle);
const std::string &getAttackParticleEffect(int attackType) const;
+ const std::string &getAttackMissileParticle(int attackType) const;
+
SpriteAction getAttackAction(int attackType) const;
const std::list<std::string>& getParticleEffects() const