diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-14 18:02:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-14 18:02:03 +0300 |
commit | 4edbdf124303f0e7c229f43a5054755e112ff6b4 (patch) | |
tree | 54d355cb568b07108c08db0f712c072d60c1a7ce /src/resources/beingcommon.cpp | |
parent | 15424641cca695650f4b56c37711c12c81cf2c32 (diff) | |
download | manaverse-4edbdf124303f0e7c229f43a5054755e112ff6b4.tar.gz manaverse-4edbdf124303f0e7c229f43a5054755e112ff6b4.tar.bz2 manaverse-4edbdf124303f0e7c229f43a5054755e112ff6b4.tar.xz manaverse-4edbdf124303f0e7c229f43a5054755e112ff6b4.zip |
Fix attack sprite actions. Add ride attack action.
Diffstat (limited to 'src/resources/beingcommon.cpp')
-rw-r--r-- | src/resources/beingcommon.cpp | 15 |
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")) |