summaryrefslogtreecommitdiff
path: root/src/statuseffect.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-31 21:21:37 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-31 21:21:37 +0300
commite8f29b1cff5360c9d16587b91d72863af4763d08 (patch)
tree19f69b1cda80609c2c040e4ad6340b84dfd96b2b /src/statuseffect.cpp
parent2ff2ea08e8d158961d4d38c06ba93c52b919026d (diff)
downloadmv-e8f29b1cff5360c9d16587b91d72863af4763d08.tar.gz
mv-e8f29b1cff5360c9d16587b91d72863af4763d08.tar.bz2
mv-e8f29b1cff5360c9d16587b91d72863af4763d08.tar.xz
mv-e8f29b1cff5360c9d16587b91d72863af4763d08.zip
Add support for dead trick status effect (hercules)
Diffstat (limited to 'src/statuseffect.cpp')
-rw-r--r--src/statuseffect.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/statuseffect.cpp b/src/statuseffect.cpp
index 8090f8011..365887a90 100644
--- a/src/statuseffect.cpp
+++ b/src/statuseffect.cpp
@@ -48,7 +48,8 @@ StatusEffect::StatusEffect() :
mPersistentParticleEffect(false),
mIsPoison(false),
mIsCart(false),
- mIsRiding(false)
+ mIsRiding(false),
+ mIsTrickDead(false)
{
}
@@ -204,6 +205,8 @@ void StatusEffect::loadXmlFile(const std::string &fileName)
(name == paths.getStringValue("cartEffectName"));
startEffect->mIsRiding =
(name == paths.getStringValue("ridingEffectName"));
+ startEffect->mIsTrickDead =
+ (name == paths.getStringValue("trickDeadEffectName"));
startEffect->mMessage = XML::getProperty(
node, "start-message", "");
startEffect->mSFXEffect = XML::getProperty(
@@ -219,6 +222,7 @@ void StatusEffect::loadXmlFile(const std::string &fileName)
endEffect->mIsPoison = startEffect->mIsPoison;
endEffect->mIsCart = startEffect->mIsCart;
endEffect->mIsRiding = startEffect->mIsRiding;
+ endEffect->mIsTrickDead = startEffect->mIsTrickDead;
endEffect->mMessage = XML::getProperty(node, "end-message", "");
endEffect->mSFXEffect = XML::getProperty(node, "end-audio", "");
endEffect->mParticleEffect = XML::getProperty(