diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-05 22:36:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-05 22:36:53 +0300 |
commit | 69b5220d914fb3b874622dcbf8e0fbd4fd73d1f7 (patch) | |
tree | a1f58e14f61ec924018b32924132ddbd004a4c91 /src/resources/beinginfo.cpp | |
parent | e6d7fca349c28eaf98d643325dc99dd9d3a53568 (diff) | |
download | plus-69b5220d914fb3b874622dcbf8e0fbd4fd73d1f7.tar.gz plus-69b5220d914fb3b874622dcbf8e0fbd4fd73d1f7.tar.bz2 plus-69b5220d914fb3b874622dcbf8e0fbd4fd73d1f7.tar.xz plus-69b5220d914fb3b874622dcbf8e0fbd4fd73d1f7.zip |
Second part adding mob particle effects for attacks.
Base on commit from mana afa134640b2e2c7c0f28a54c8691545848795dd9
by Yohann Ferreira
Diffstat (limited to 'src/resources/beinginfo.cpp')
-rw-r--r-- | src/resources/beinginfo.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp index 992a43b5b..9ee0f3de9 100644 --- a/src/resources/beinginfo.cpp +++ b/src/resources/beinginfo.cpp @@ -30,7 +30,8 @@ #include "debug.h" BeingInfo *BeingInfo::unknown = nullptr; -Attack *BeingInfo::empty = new Attack(SpriteAction::ATTACK, -1, std::string()); +Attack *BeingInfo::empty = new Attack(SpriteAction::ATTACK, + -1, -1, -1, std::string()); BeingInfo::BeingInfo() : mName(_("unnamed")), @@ -114,12 +115,14 @@ const Attack *BeingInfo::getAttack(const int id) const } void BeingInfo::addAttack(const int id, std::string action, const int effectId, + const int hitEffectId, const int criticalHitEffectId, const std::string &missileParticle) { if (mAttacks[id]) delete mAttacks[id]; - mAttacks[id] = new Attack(action, effectId, missileParticle); + mAttacks[id] = new Attack(action, effectId, hitEffectId, + criticalHitEffectId, missileParticle); } void BeingInfo::clear() |