Remove the rest of the unused AI Aggro left-overs
This commit is contained in:
@@ -192,8 +192,6 @@ namespace OpenRA.Mods.Common.AI
|
|||||||
public object Create(ActorInitializer init) { return new HackyAI(this, init); }
|
public object Create(ActorInitializer init) { return new HackyAI(this, init); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Enemy { public int Aggro; }
|
|
||||||
|
|
||||||
public enum BuildingType { Building, Defense, Refinery }
|
public enum BuildingType { Building, Defense, Refinery }
|
||||||
|
|
||||||
public sealed class HackyAI : ITick, IBot, INotifyDamage
|
public sealed class HackyAI : ITick, IBot, INotifyDamage
|
||||||
@@ -232,7 +230,6 @@ namespace OpenRA.Mods.Common.AI
|
|||||||
|
|
||||||
BitArray resourceTypeIndices;
|
BitArray resourceTypeIndices;
|
||||||
|
|
||||||
Cache<Player, Enemy> aggro = new Cache<Player, Enemy>(_ => new Enemy());
|
|
||||||
List<BaseBuilder> builders = new List<BaseBuilder>();
|
List<BaseBuilder> builders = new List<BaseBuilder>();
|
||||||
|
|
||||||
List<Actor> unitsHangingAroundTheBase = new List<Actor>();
|
List<Actor> unitsHangingAroundTheBase = new List<Actor>();
|
||||||
@@ -1052,9 +1049,6 @@ namespace OpenRA.Mods.Common.AI
|
|||||||
if (!e.Attacker.Info.HasTraitInfo<ITargetableInfo>())
|
if (!e.Attacker.Info.HasTraitInfo<ITargetableInfo>())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (e.Damage > 0)
|
|
||||||
aggro[e.Attacker.Owner].Aggro += e.Damage;
|
|
||||||
|
|
||||||
// Protected harvesters or building
|
// Protected harvesters or building
|
||||||
if ((self.Info.HasTraitInfo<HarvesterInfo>() || self.Info.HasTraitInfo<BuildingInfo>()) &&
|
if ((self.Info.HasTraitInfo<HarvesterInfo>() || self.Info.HasTraitInfo<BuildingInfo>()) &&
|
||||||
Player.Stances[e.Attacker.Owner] == Stance.Enemy)
|
Player.Stances[e.Attacker.Owner] == Stance.Enemy)
|
||||||
|
|||||||
Reference in New Issue
Block a user