From afa134640b2e2c7c0f28a54c8691545848795dd9 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sat, 4 Jun 2011 00:50:23 +0200 Subject: Added hit effects on victims from monsters attacks. Resolves: Mana-Mantis #336. Reviewed-by: Jaxad0127. --- src/resources/beinginfo.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/resources/beinginfo.h') diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h index b4529b2f..fef698bb 100644 --- a/src/resources/beinginfo.h +++ b/src/resources/beinginfo.h @@ -33,14 +33,16 @@ struct Attack { std::string mAction; - int mEffectId; + int mEffectId, mHitEffectId, mCriticalHitEffectId; std::string mMissileParticleFilename; - Attack(std::string action, int effectId, - std::string missileParticleFilename) + Attack(std::string action, int effectId, int hitEffectId, + int criticalHitEffectId, std::string missileParticleFilename) { mAction = action; mEffectId = effectId; + mHitEffectId = hitEffectId; + mCriticalHitEffectId = criticalHitEffectId; mMissileParticleFilename = missileParticleFilename; } }; @@ -96,6 +98,7 @@ class BeingInfo const std::string &getSound(SoundEvent event) const; void addAttack(int id, std::string action, int effectId, + int hitEffectId, int criticalHitEffectId, const std::string &missileParticleFilename); const Attack *getAttack(int id) const; -- cgit v1.2.3-70-g09d2