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

@@ -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;