Refactored ticks to delay per issue #9810

This commit is contained in:
Jonathan Ling
2016-02-06 23:18:08 -05:00
committed by colonelpopcorn
parent 689f05c3ca
commit 2d4c3f715f
11 changed files with 58 additions and 31 deletions

View File

@@ -17,7 +17,7 @@ namespace OpenRA.Mods.Common.Traits
class SelfHealingInfo : UpgradableTraitInfo, Requires<HealthInfo>
{
public readonly int Step = 5;
public readonly int Ticks = 5;
public readonly int Delay = 5;
public readonly float HealIfBelow = .5f;
public readonly int DamageCooldown = 0;
@@ -53,7 +53,7 @@ namespace OpenRA.Mods.Common.Traits
if (--ticks <= 0)
{
ticks = Info.Ticks;
ticks = Info.Delay;
self.InflictDamage(self, -Info.Step, null);
}
}