Rename ProneSpeed to SpeedModifier in TakeCover.

This commit is contained in:
Paul Chote
2014-08-12 11:43:15 +12:00
parent 01cd6efbd0
commit 7e92ba9fdd
2 changed files with 5 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ namespace OpenRA.Mods.RA
public readonly int ProneTime = 100;
[Desc("Prone movement speed as a percentage of the normal speed.")]
public readonly int ProneSpeed = 50;
public readonly int SpeedModifier = 50;
public readonly WVec ProneOffset = new WVec(85, 0, -171);
@@ -68,7 +68,7 @@ namespace OpenRA.Mods.RA
public int GetSpeedModifier()
{
return IsProne ? Info.ProneSpeed : 100;
return IsProne ? Info.SpeedModifier : 100;
}
}

View File

@@ -424,7 +424,10 @@ namespace OpenRA.Utility
ConvertFloatArrayToPercentArray(ref node.Value.Value);
if (depth == 2 && node.Key == "ProneSpeed" && parentKey == "TakeCover")
{
node.Key = "SpeedModifier";
ConvertFloatArrayToPercentArray(ref node.Value.Value);
}
if (depth == 2 && node.Key == "SpeedModifier" && parentKey == "GainsStatUpgrades")
ConvertFloatArrayToPercentArray(ref node.Value.Value);