summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-06 03:54:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-06 03:54:00 +0300
commit4fb8f9f0905038f3180f108ec56b2a326ceb3483 (patch)
tree94b221f6bc81e07d565d2828dac078f471854b81 /src/resources/beinginfo.cpp
parentdf9a705c331da29cb0582539a817f68c79d4f267 (diff)
downloadmv-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.gz
mv-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.bz2
mv-4fb8f9f0905038f3180f108ec56b2a326ceb3483.tar.xz
mv-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.cpp6
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");
}
}