forked from mirrors/0ad
- Round attack numbers in the GUI. Patch by scythetwirler. Fix #1997.
- Adjust the siege attack tech to add an integer instead of multiply by a percentage. - Fix the siege armor tech so the tooltip and the added value match up. This was SVN commit r13540.
This commit is contained in:
@@ -227,9 +227,9 @@ function damageTypesToText(dmg)
|
||||
var crushDamage = dmg.crush;
|
||||
|
||||
var dmgArray = [];
|
||||
if (hackDamage) dmgArray.push(hackDamage + hackLabel);
|
||||
if (pierceDamage) dmgArray.push(pierceDamage + pierceLabel);
|
||||
if (crushDamage) dmgArray.push(crushDamage + crushLabel);
|
||||
if (hackDamage) dmgArray.push(Math.round(hackDamage) + hackLabel);
|
||||
if (pierceDamage) dmgArray.push(Math.round(pierceDamage) + pierceLabel);
|
||||
if (crushDamage) dmgArray.push(Math.round(crushDamage) + crushLabel);
|
||||
|
||||
return dmgArray.join("[font=\"serif-12\"], [/font]");
|
||||
}
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
"icon": "armor_plates_gold.png",
|
||||
"researchTime": 30,
|
||||
"tooltip": "All Siege weapons +2 Hack armor levels.",
|
||||
"modifications": [{"value": "Armour/Hack", "add": 5.0}],
|
||||
"modifications": [{"value": "Armour/Hack", "add": 2.0}],
|
||||
"affects": ["Siege"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
"requirementsTooltip": "Unlocked in City Phase.",
|
||||
"icon": "siege_ram.png",
|
||||
"researchTime": 30,
|
||||
"tooltip": "Siege crush damage increased 20%",
|
||||
"tooltip": "All siege weapons +3 Crush damage.",
|
||||
"modifications": [
|
||||
{"value": "Attack/Melee/Crush", "multiplier": 1.2},
|
||||
{"value": "Attack/Ranged/Crush", "multiplier": 1.2}],
|
||||
{"value": "Attack/Melee/Crush", "add": 3},
|
||||
{"value": "Attack/Ranged/Crush", "add": 3}],
|
||||
"affects": ["Siege"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user