summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-07 21:24:51 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-07 21:24:51 +0300
commit0ff91dcf4754a867be162095f500ca5b0bea2fdf (patch)
tree8a6ed6ece71be870bba97cc3b5fd124d486d94ec /src/gui/windows
parent07d4987ae8ae1efea72d8a16b4f4bf17117c6c10 (diff)
downloadplus-0ff91dcf4754a867be162095f500ca5b0bea2fdf.tar.gz
plus-0ff91dcf4754a867be162095f500ca5b0bea2fdf.tar.bz2
plus-0ff91dcf4754a867be162095f500ca5b0bea2fdf.tar.xz
plus-0ff91dcf4754a867be162095f500ca5b0bea2fdf.zip
Add additional attributes to missile particles in skills.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/skilldialog.cpp25
1 files changed, 23 insertions, 2 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index a1ad9b6ab..b4699c525 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -562,10 +562,31 @@ void SkillDialog::loadSkillData(XmlNodeConstPtr node,
"shortName", name.substr(0, 3));
data->description = XML::langProperty(
node, "description", "");
- data->missileParticle = XML::getProperty(
+
+ MissileInfo &missile = data->missile;
+ missile.particle = XML::getProperty(
node, "missile-particle", "");
- data->castingMissileParticle = XML::getProperty(
+ missile.z = static_cast<float>(XML::getFloatProperty(
+ node, "missile-z", 32.0f));
+ missile.lifeTime = static_cast<float>(XML::getProperty(
+ node, "missile-lifetime", 3000));
+ missile.speed = static_cast<float>(XML::getFloatProperty(
+ node, "missile-speed", 7.0f));
+ missile.dieDistance = static_cast<float>(
+ XML::getFloatProperty(node, "missile-diedistance", 8.0f));
+
+ MissileInfo &castingMissile = data->castingMissile;
+ castingMissile.particle = XML::getProperty(
node, "castingMissile-particle", "");
+ castingMissile.z = static_cast<float>(XML::getFloatProperty(
+ node, "castingMissile-z", 32.0f));
+ castingMissile.lifeTime = static_cast<float>(XML::getProperty(
+ node, "castingMissile-lifetime", 3000));
+ castingMissile.speed = static_cast<float>(XML::getFloatProperty(
+ node, "castingMissile-speed", 7.0f));
+ castingMissile.dieDistance = static_cast<float>(
+ XML::getFloatProperty(node, "castingMissile-diedistance", 8.0f));
+
data->castingAnimation = XML::getProperty(
node,
"castingAnimation",