Complete ArmorModifier->DamageModifier rename

PR #6303 neglected to rename the "armor" upgrade to "damage" in all
necessary places, as mentioned in
https://github.com/OpenRA/OpenRA/pull/6303#issuecomment-53312209
This commit is contained in:
Oliver Brakmann
2014-09-03 22:54:51 +02:00
parent 2ccc6f63e0
commit da454de398
3 changed files with 14 additions and 12 deletions

View File

@@ -459,6 +459,8 @@ namespace OpenRA.Utility
node.Value.Value = string.Join(", ", node.Value.Value.Split(',')
.Select(s => ((int)(100 * 100 / float.Parse(s))).ToString()));
}
if (depth == 3 && parentKey == "Upgrades")
node.Value.Value = node.Value.Value.Replace("armor", "damage");
}
// RenderInfantryProne and RenderInfantryPanic was merged into RenderInfantry