summaryrefslogtreecommitdiff
path: root/src/resources/beingcommon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/beingcommon.cpp')
-rw-r--r--src/resources/beingcommon.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/resources/beingcommon.cpp b/src/resources/beingcommon.cpp
index 6d244960f..7e5fb9481 100644
--- a/src/resources/beingcommon.cpp
+++ b/src/resources/beingcommon.cpp
@@ -231,6 +231,15 @@ bool BeingCommon::readObjectNodes(XmlNodePtrConst &spriteNode,
const std::string missileParticle = XML::getProperty(spriteNode,
"missile-particle", "");
+ const float missileZ = static_cast<float>(XML::getFloatProperty(
+ spriteNode, "missile-z", 32.0f));
+ const int missileLifeTime = static_cast<float>(XML::getProperty(
+ spriteNode, "missile-lifetime", 3000));
+ const float missileSpeed = static_cast<float>(XML::getFloatProperty(
+ spriteNode, "missile-speed", 7.0f));
+ const float missileDieDistance = static_cast<float>(
+ XML::getFloatProperty(spriteNode, "missile-diedistance", 8.0f));
+
currentInfo->addAttack(attackId,
spriteAction,
skySpriteAction,
@@ -240,7 +249,11 @@ bool BeingCommon::readObjectNodes(XmlNodePtrConst &spriteNode,
hitEffectId,
criticalHitEffectId,
missEffectId,
- missileParticle);
+ missileParticle,
+ missileZ,
+ missileSpeed,
+ missileDieDistance,
+ missileLifeTime);
return true;
}
else if (xmlNameEqual(spriteNode, "particlefx"))