Remove IExplodeModifier interface.
This commit is contained in:
committed by
Oliver Brakmann
parent
80842fd4b8
commit
807a40c209
@@ -80,7 +80,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public object Create(ActorInitializer init) { return new Harvester(init.Self, this); }
|
||||
}
|
||||
|
||||
public class Harvester : IIssueOrder, IResolveOrder, IPips, IExplodeModifier, IOrderVoice,
|
||||
public class Harvester : IIssueOrder, IResolveOrder, IPips, IOrderVoice,
|
||||
ISpeedModifier, ISync, INotifyCreated, INotifyIdle, INotifyBlockingMove
|
||||
{
|
||||
public readonly HarvesterInfo Info;
|
||||
@@ -470,8 +470,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
yield return GetPipAt(i);
|
||||
}
|
||||
|
||||
bool IExplodeModifier.ShouldExplode(Actor self) { return !IsEmpty; }
|
||||
|
||||
int ISpeedModifier.GetSpeedModifier()
|
||||
{
|
||||
return 100 - (100 - Info.FullyLoadedSpeed) * contents.Values.Sum() / Info.Capacity;
|
||||
|
||||
Reference in New Issue
Block a user