Convert speed modifiers to integer percentages.

This commit is contained in:
Paul Chote
2014-08-09 21:54:03 +12:00
parent 0425416ce2
commit 84d3497e96
8 changed files with 33 additions and 20 deletions

View File

@@ -21,8 +21,8 @@ namespace OpenRA.Mods.RA
"Measured in game ticks. Default is 4 seconds.")]
public readonly int ProneTime = 100;
[Desc("How quickly we should go from standing to prone.")]
public readonly decimal ProneSpeed = .5m;
[Desc("Prone movement speed as a percentage of the normal speed.")]
public readonly int ProneSpeed = 50;
public readonly WVec ProneOffset = new WVec(85, 0, -171);
@@ -66,9 +66,9 @@ namespace OpenRA.Mods.RA
return IsProne && warhead != null ? warhead.ProneModifier : 100;
}
public decimal GetSpeedModifier()
public int GetSpeedModifier()
{
return IsProne ? Info.ProneSpeed : 1m;
return IsProne ? Info.ProneSpeed : 100;
}
}