cleanup some relics of old TypeDictionary
This commit is contained in:
@@ -79,7 +79,7 @@ namespace OpenRa.Game.Traits
|
||||
|
||||
if (a.traits.Contains<AutoHeal>())
|
||||
return PipType.Yellow;
|
||||
if (!a.traits.WithInterface<AttackBase>().Any())
|
||||
if (!a.traits.Contains<AttackBase>())
|
||||
return PipType.Yellow; // noncombat [E6,SPY,THF]
|
||||
if (a.traits.Contains<C4Demolition>())
|
||||
return PipType.Red; // E7
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace OpenRa.Game.Traits
|
||||
{
|
||||
if (mi.Button != MouseButton.Right) return null;
|
||||
if (underCursor != null) return null;
|
||||
if (underCursor.traits.WithInterface<IAcceptSpy>().Any()) return null;
|
||||
if (underCursor.traits.Contains<IAcceptSpy>()) return null;
|
||||
|
||||
return new Order("Infiltrate", self, underCursor, int2.Zero, null);
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace OpenRa.Game.Traits
|
||||
{
|
||||
if (mi.Button != MouseButton.Right) return null;
|
||||
if (underCursor == null) return null;
|
||||
if (!underCursor.traits.WithInterface<IAcceptThief>().Any()) return null;
|
||||
if (!underCursor.traits.Contains<IAcceptThief>()) return null;
|
||||
|
||||
return new Order("Steal", self, underCursor, int2.Zero, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user