summaryrefslogtreecommitdiff
path: root/src/resources/beingcommon.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-14 18:02:03 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-14 18:02:03 +0300
commit4edbdf124303f0e7c229f43a5054755e112ff6b4 (patch)
tree54d355cb568b07108c08db0f712c072d60c1a7ce /src/resources/beingcommon.cpp
parent15424641cca695650f4b56c37711c12c81cf2c32 (diff)
downloadmv-4edbdf124303f0e7c229f43a5054755e112ff6b4.tar.gz
mv-4edbdf124303f0e7c229f43a5054755e112ff6b4.tar.bz2
mv-4edbdf124303f0e7c229f43a5054755e112ff6b4.tar.xz
mv-4edbdf124303f0e7c229f43a5054755e112ff6b4.zip
Fix attack sprite actions. Add ride attack action.
Diffstat (limited to 'src/resources/beingcommon.cpp')
-rw-r--r--src/resources/beingcommon.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/resources/beingcommon.cpp b/src/resources/beingcommon.cpp
index 6c64a162d..3025e658c 100644
--- a/src/resources/beingcommon.cpp
+++ b/src/resources/beingcommon.cpp
@@ -188,13 +188,22 @@ bool BeingCommon::readObjectNodes(XmlNodePtrConst &spriteNode,
"skyaction", "skyattack");
const std::string waterSpriteAction = XML::getProperty(spriteNode,
"wateraction", "waterattack");
+ const std::string rideSpriteAction = XML::getProperty(spriteNode,
+ "rideaction", "rideattack");
const std::string missileParticle = XML::getProperty(spriteNode,
"missile-particle", "");
- currentInfo->addAttack(attackId, spriteAction, skySpriteAction,
- waterSpriteAction, effectId, hitEffectId,
- criticalHitEffectId, missEffectId, missileParticle);
+ currentInfo->addAttack(attackId,
+ spriteAction,
+ skySpriteAction,
+ waterSpriteAction,
+ rideSpriteAction,
+ effectId,
+ hitEffectId,
+ criticalHitEffectId,
+ missEffectId,
+ missileParticle);
return true;
}
else if (xmlNameEqual(spriteNode, "particlefx"))