Migrate ProvidesRadar to conditions and remove JamsRadar.

This commit is contained in:
Paul Chote
2017-01-21 11:08:46 +00:00
parent bb972fa46d
commit 1f44e91746
15 changed files with 130 additions and 78 deletions

View File

@@ -100,7 +100,7 @@ namespace OpenRA.Mods.RA.Traits
owner.GpsAdd(self);
}
bool NoActiveRadar { get { return !self.World.ActorsHavingTrait<ProvidesRadar>(r => r.IsActive).Any(a => a.Owner == self.Owner); } }
bool NoActiveRadar { get { return !self.World.ActorsHavingTrait<ProvidesRadar>(r => !r.IsTraitDisabled).Any(a => a.Owner == self.Owner); } }
bool wasDisabled;
void ITick.Tick(Actor self)