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

@@ -17,7 +17,7 @@ namespace OpenRA.Mods.RA
class ScaredyCatInfo : ITraitInfo
{
public readonly int PanicLength = 25 * 10;
public readonly decimal PanicSpeedModifier = 2;
public readonly int PanicSpeedModifier = 200;
public readonly int AttackPanicChance = 20;
public object Create(ActorInitializer init) { return new ScaredyCat(init.self, this); }
@@ -74,9 +74,9 @@ namespace OpenRA.Mods.RA
Panic();
}
public decimal GetSpeedModifier()
public int GetSpeedModifier()
{
return Panicking ? Info.PanicSpeedModifier : 1;
return Panicking ? Info.PanicSpeedModifier : 100;
}
}
}