Tweak elevation bonus of sentry tower to match his height. Add elevation bonus to attack tooltip (it was missing in structure tree and selection panel). Reviewed by elexis.

This was SVN commit r18853.
This commit is contained in:
fatherbushido 2016-10-23 12:25:55 +00:00
parent 37f8441703
commit e0ac50778e
2 changed files with 6 additions and 2 deletions

View File

@ -115,6 +115,7 @@ function GetTemplateDataHelper(template, player, auraTemplates)
"value": getAttackStat("Value")
};
else
{
ret.attack[type] = {
"hack": getAttackStat("Hack"),
"pierce": getAttackStat("Pierce"),
@ -123,7 +124,9 @@ function GetTemplateDataHelper(template, player, auraTemplates)
"maxRange": getAttackStat("MaxRange"),
"elevationBonus": getAttackStat("ElevationBonus")
};
ret.attack[type].elevationAdaptedRange = Math.sqrt(ret.attack[type].maxRange *
(2 * ret.attack[type].elevationBonus + ret.attack[type].maxRange));
}
ret.attack[type].repeatTime = getAttackStat("RepeatTime");
if (template.Attack[type].Splash)

View File

@ -10,8 +10,9 @@
<Hack>0.0</Hack>
<Pierce>6.0</Pierce>
<Crush>0.0</Crush>
<MaxRange>60.0</MaxRange>
<MaxRange>66.0</MaxRange>
<MinRange>4.0</MinRange>
<ElevationBonus>9.0</ElevationBonus>
</Ranged>
</Attack>
<Capturable>