diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-06-04 00:50:23 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-06-07 18:51:22 +0200 |
commit | afa134640b2e2c7c0f28a54c8691545848795dd9 (patch) | |
tree | b8c9f03debebc9a15de2a21f4d4a377247615c1d /src/resources/beinginfo.h | |
parent | 9b1c970c70f30733d5d851b834a860365819409c (diff) | |
download | mana-client-afa134640b2e2c7c0f28a54c8691545848795dd9.tar.gz mana-client-afa134640b2e2c7c0f28a54c8691545848795dd9.tar.bz2 mana-client-afa134640b2e2c7c0f28a54c8691545848795dd9.tar.xz mana-client-afa134640b2e2c7c0f28a54c8691545848795dd9.zip |
Added hit effects on victims from monsters attacks.
Resolves: Mana-Mantis #336.
Reviewed-by: Jaxad0127.
Diffstat (limited to 'src/resources/beinginfo.h')
-rw-r--r-- | src/resources/beinginfo.h | 9 |
1 files changed, 6 insertions, 3 deletions
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; |