Remove IExplodeModifier interface.

This commit is contained in:
Paul Chote
2018-11-17 09:13:28 +00:00
committed by Oliver Brakmann
parent 80842fd4b8
commit 807a40c209
12 changed files with 72 additions and 11 deletions

View File

@@ -101,7 +101,7 @@ namespace OpenRA.Mods.Common.Traits
}
}
public class Armament : PausableConditionalTrait<ArmamentInfo>, ITick, IExplodeModifier
public class Armament : PausableConditionalTrait<ArmamentInfo>, ITick
{
public readonly WeaponInfo Weapon;
public readonly Barrel[] Barrels;
@@ -369,8 +369,6 @@ namespace OpenRA.Mods.Common.Traits
}
public virtual bool IsReloading { get { return FireDelay > 0 || IsTraitDisabled; } }
public virtual bool AllowExplode { get { return !IsReloading; } }
bool IExplodeModifier.ShouldExplode(Actor self) { return AllowExplode; }
public WVec MuzzleOffset(Actor self, Barrel b)
{