diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-06 03:54:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-06 03:54:00 +0300 |
commit | 4fb8f9f0905038f3180f108ec56b2a326ceb3483 (patch) | |
tree | 94b221f6bc81e07d565d2828dac078f471854b81 /src/resources/beinginfo.cpp | |
parent | df9a705c331da29cb0582539a817f68c79d4f267 (diff) | |
download | plus-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.gz plus-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.bz2 plus-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.xz plus-4fb8f9f0905038f3180f108ec56b2a326ceb3483.zip |
Add particle effect miss-effect-id to items and monsters.
Diffstat (limited to 'src/resources/beinginfo.cpp')
-rw-r--r-- | src/resources/beinginfo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp index eef4ba7b7..f55d1f2e3 100644 --- a/src/resources/beinginfo.cpp +++ b/src/resources/beinginfo.cpp @@ -32,7 +32,7 @@ BeingInfo *BeingInfo::unknown = nullptr; Attack *BeingInfo::empty = new Attack(SpriteAction::ATTACK, - -1, -1, -1, std::string()); + -1, -1, -1, -1, std::string()); BeingInfo::BeingInfo() : mName(_("unnamed")), @@ -117,13 +117,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 int missEffectId, const std::string &missileParticle) { if (mAttacks[id]) delete mAttacks[id]; mAttacks[id] = new Attack(action, effectId, hitEffectId, - criticalHitEffectId, missileParticle); + criticalHitEffectId, missEffectId, missileParticle); } void BeingInfo::clear() @@ -141,5 +142,6 @@ void BeingInfo::init() empty->mEffectId = paths.getIntValue("effectId"); empty->mHitEffectId = paths.getIntValue("hitEffectId"); empty->mCriticalHitEffectId = paths.getIntValue("criticalHitEffectId"); + empty->mMissEffectId = paths.getIntValue("missEffectId"); } } |