Rename ProneSpeed to SpeedModifier in TakeCover.
This commit is contained in:
@@ -22,7 +22,7 @@ namespace OpenRA.Mods.RA
|
|||||||
public readonly int ProneTime = 100;
|
public readonly int ProneTime = 100;
|
||||||
|
|
||||||
[Desc("Prone movement speed as a percentage of the normal speed.")]
|
[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);
|
public readonly WVec ProneOffset = new WVec(85, 0, -171);
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ namespace OpenRA.Mods.RA
|
|||||||
|
|
||||||
public int GetSpeedModifier()
|
public int GetSpeedModifier()
|
||||||
{
|
{
|
||||||
return IsProne ? Info.ProneSpeed : 100;
|
return IsProne ? Info.SpeedModifier : 100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -424,7 +424,10 @@ namespace OpenRA.Utility
|
|||||||
ConvertFloatArrayToPercentArray(ref node.Value.Value);
|
ConvertFloatArrayToPercentArray(ref node.Value.Value);
|
||||||
|
|
||||||
if (depth == 2 && node.Key == "ProneSpeed" && parentKey == "TakeCover")
|
if (depth == 2 && node.Key == "ProneSpeed" && parentKey == "TakeCover")
|
||||||
|
{
|
||||||
|
node.Key = "SpeedModifier";
|
||||||
ConvertFloatArrayToPercentArray(ref node.Value.Value);
|
ConvertFloatArrayToPercentArray(ref node.Value.Value);
|
||||||
|
}
|
||||||
|
|
||||||
if (depth == 2 && node.Key == "SpeedModifier" && parentKey == "GainsStatUpgrades")
|
if (depth == 2 && node.Key == "SpeedModifier" && parentKey == "GainsStatUpgrades")
|
||||||
ConvertFloatArrayToPercentArray(ref node.Value.Value);
|
ConvertFloatArrayToPercentArray(ref node.Value.Value);
|
||||||
|
|||||||
Reference in New Issue
Block a user