Remove IExplodeModifier interface.
This commit is contained in:
committed by
Oliver Brakmann
parent
80842fd4b8
commit
807a40c209
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user