From 91075015ad4b5bd576c1a5668a11ea0227dd6bd1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Jul 2013 23:19:30 +0300 Subject: add support for attacksky and attackwater actions. --- src/resources/beinginfo.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/resources/beinginfo.h') diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h index 5b2b7b87c..e9f1a6055 100644 --- a/src/resources/beinginfo.h +++ b/src/resources/beinginfo.h @@ -35,16 +35,21 @@ struct Attack final { std::string mAction; + std::string mSkyAction; + std::string mWaterAction; int mEffectId; int mHitEffectId; int mCriticalHitEffectId; int mMissEffectId; std::string mMissileParticle; - Attack(const std::string &action, const int effectId, + Attack(const std::string &action, const std::string &skyAction, + const std::string &waterAction, const int effectId, const int hitEffectId, const int criticalHitEffectId, const int missEffectId, const std::string &missileParticle) : mAction(action), + mSkyAction(skyAction), + mWaterAction(waterAction), mEffectId(effectId), mHitEffectId(hitEffectId), mCriticalHitEffectId(criticalHitEffectId), @@ -126,7 +131,8 @@ class BeingInfo final const SoundInfo &getSound(const SoundEvent event) const A_WARN_UNUSED; - void addAttack(const int id, std::string action, const int effectId, + void addAttack(const int id, std::string action, std::string skyAttack, + std::string waterAttack, const int effectId, const int hitEffectId, const int criticalHitEffectId, const int missEffectId, const std::string &missileParticle); -- cgit v1.2.3-60-g2f50