summaryrefslogtreecommitdiff
path: root/src/statuseffect.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-08 19:38:34 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-08 19:38:34 +0300
commit203045d6184a3e6246b64b3433f43e0bfebc2e31 (patch)
tree36388d4420f7ac5d11e0a2c2e3d400aaf14e2cee /src/statuseffect.cpp
parenteef656d3e65cc8954d03e65aacb04ba0271b7703 (diff)
downloadplus-203045d6184a3e6246b64b3433f43e0bfebc2e31.tar.gz
plus-203045d6184a3e6246b64b3433f43e0bfebc2e31.tar.bz2
plus-203045d6184a3e6246b64b3433f43e0bfebc2e31.tar.xz
plus-203045d6184a3e6246b64b3433f43e0bfebc2e31.zip
Add support for post delay status effect. It change cast animation to stand.
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 f4b1ce4e9..97ce131ab 100644
--- a/src/statuseffect.cpp
+++ b/src/statuseffect.cpp
@@ -54,7 +54,8 @@ StatusEffect::StatusEffect() :
mIsPoison(false),
mIsCart(false),
mIsRiding(false),
- mIsTrickDead(false)
+ mIsTrickDead(false),
+ mIsPostDelay(false)
{
}
@@ -218,6 +219,8 @@ void StatusEffect::loadXmlFile(const std::string &fileName)
(name == paths.getStringValue("ridingEffectName"));
startEffect->mIsTrickDead =
(name == paths.getStringValue("trickDeadEffectName"));
+ startEffect->mIsPostDelay =
+ (name == paths.getStringValue("postDelayName"));
startEffect->mMessage = XML::getProperty(
node, "start-message", "");
startEffect->mSFXEffect = XML::getProperty(
@@ -235,6 +238,7 @@ void StatusEffect::loadXmlFile(const std::string &fileName)
endEffect->mIsCart = startEffect->mIsCart;
endEffect->mIsRiding = startEffect->mIsRiding;
endEffect->mIsTrickDead = startEffect->mIsTrickDead;
+ endEffect->mIsPostDelay = startEffect->mIsPostDelay;
endEffect->mMessage = XML::getProperty(node, "end-message", "");
endEffect->mSFXEffect = XML::getProperty(node, "end-audio", "");
endEffect->mParticleEffect = XML::getProperty(