From 104148378f18b605ded878f126e5576abf8e7eba Mon Sep 17 00:00:00 2001 From: reaperrr Date: Sat, 2 Dec 2017 06:25:34 +0100 Subject: [PATCH] Remove some redundancy in AttackOrFleeFuzzy --- OpenRA.Mods.Common/AI/AttackOrFleeFuzzy.cs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/OpenRA.Mods.Common/AI/AttackOrFleeFuzzy.cs b/OpenRA.Mods.Common/AI/AttackOrFleeFuzzy.cs index 66a94e6551..735078daa4 100644 --- a/OpenRA.Mods.Common/AI/AttackOrFleeFuzzy.cs +++ b/OpenRA.Mods.Common/AI/AttackOrFleeFuzzy.cs @@ -72,13 +72,7 @@ namespace OpenRA.Mods.Common.AI "then AttackOrFlee is Attack", "if ((OwnHealth is NearDead) " + - "and (EnemyHealth is NearDead) " + - "and (RelativeAttackPower is Weak) " + - "and ((RelativeSpeed is Equal) or (RelativeSpeed is Fast))) " + - "then AttackOrFlee is Flee", - - "if ((OwnHealth is NearDead) " + - "and (EnemyHealth is Injured) " + + "and ((EnemyHealth is NearDead) or (EnemyHealth is Injured)) " + "and (RelativeAttackPower is Weak) " + "and ((RelativeSpeed is Equal) or (RelativeSpeed is Fast))) " + "then AttackOrFlee is Flee", @@ -91,13 +85,7 @@ namespace OpenRA.Mods.Common.AI "if (OwnHealth is NearDead) " + "and (EnemyHealth is Normal) " + - "and (RelativeAttackPower is Equal) " + - "and (RelativeSpeed is Fast) " + - "then AttackOrFlee is Flee", - - "if (OwnHealth is NearDead) " + - "and (EnemyHealth is Normal) " + - "and (RelativeAttackPower is Strong) " + + "and ((RelativeAttackPower is Equal) or (RelativeAttackPower is Strong)) " + "and (RelativeSpeed is Fast) " + "then AttackOrFlee is Flee",