summaryrefslogtreecommitdiff
path: root/src/being/actorsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-21 17:03:45 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-21 17:03:45 +0300
commit800b0f0477ac00a447aa958d1974e2c01d4eaa6c (patch)
tree40bd91cef8f3890bfcaec92f0058d6a6027ac171 /src/being/actorsprite.cpp
parentac4e40a1408ad4d6fbcfce9d2bc6a0bc187ea5a4 (diff)
downloadplus-800b0f0477ac00a447aa958d1974e2c01d4eaa6c.tar.gz
plus-800b0f0477ac00a447aa958d1974e2c01d4eaa6c.tar.bz2
plus-800b0f0477ac00a447aa958d1974e2c01d4eaa6c.tar.xz
plus-800b0f0477ac00a447aa958d1974e2c01d4eaa6c.zip
Remove some getters from StatusEffect.
Diffstat (limited to 'src/being/actorsprite.cpp')
-rw-r--r--src/being/actorsprite.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp
index 4424d4e07..6c083b9ce 100644
--- a/src/being/actorsprite.cpp
+++ b/src/being/actorsprite.cpp
@@ -119,7 +119,7 @@ void ActorSprite::logic()
{
const StatusEffect *const effect
= StatusEffectDB::getStatusEffect(*it, Enable_true);
- if (effect && effect->particleEffectIsPersistent())
+ if (effect && effect->mIsPersistent)
updateStatusEffect(*it, Enable_true);
}
}
@@ -266,16 +266,16 @@ void ActorSprite::updateStatusEffect(const int index, const Enable newStatus)
index, newStatus);
if (!effect)
return;
- if (effect->isPoison() && getType() == ActorType::Player)
+ if (effect->mIsPoison && getType() == ActorType::Player)
setPoison(newStatus == Enable_true);
#ifdef EATHENA_SUPPORT
- else if (effect->isCart() && localPlayer == this)
+ else if (effect->mIsCart && localPlayer == this)
setHaveCart(newStatus == Enable_true);
- else if (effect->isRiding())
+ else if (effect->mIsRiding)
setRiding(newStatus == Enable_true);
- else if (effect->isTrickDead())
+ else if (effect->mIsTrickDead)
setTrickDead(newStatus == Enable_true);
- else if (effect->isPostDelay())
+ else if (effect->mIsPostDelay)
stopCast(newStatus == Enable_true);
#endif
handleStatusEffect(effect, index);