From aef6ac43359bf4a4f104bc36cabd926c08e7ab11 Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 19 Nov 2020 13:30:59 -0500 Subject: [PATCH] Made RepairAI only move toward ally buildings --- core/src/mindustry/ai/types/RepairAI.java | 2 +- core/src/mindustry/content/UnitTypes.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/mindustry/ai/types/RepairAI.java b/core/src/mindustry/ai/types/RepairAI.java index eb066e212c..db20cc7d60 100644 --- a/core/src/mindustry/ai/types/RepairAI.java +++ b/core/src/mindustry/ai/types/RepairAI.java @@ -23,7 +23,7 @@ public class RepairAI extends AIController{ } if(target != null){ - if(!target.within(unit, unit.type.range * 0.65f) && target instanceof Building){ + if(!target.within(unit, unit.type.range * 0.65f) && target instanceof Building b && b.team == unit.team){ moveTo(target, unit.type.range * 0.65f); } diff --git a/core/src/mindustry/content/UnitTypes.java b/core/src/mindustry/content/UnitTypes.java index 7ee6dfebf2..380df9d03b 100644 --- a/core/src/mindustry/content/UnitTypes.java +++ b/core/src/mindustry/content/UnitTypes.java @@ -1739,7 +1739,7 @@ public class UnitTypes implements ContentList{ lifetime = 60f; shootEffect = Fx.shootSmall; smokeEffect = Fx.shootSmallSmoke; - tileDamageMultiplier = 0.03f; + tileDamageMultiplier = 0.02f; }}; }}); }}; @@ -1781,7 +1781,7 @@ public class UnitTypes implements ContentList{ lifetime = 60f; shootEffect = Fx.shootSmall; smokeEffect = Fx.shootSmallSmoke; - tileDamageMultiplier = 0.03f; + tileDamageMultiplier = 0.02f; }}; }}); }}; @@ -1821,7 +1821,7 @@ public class UnitTypes implements ContentList{ lifetime = 70f; shootEffect = Fx.shootSmall; smokeEffect = Fx.shootSmallSmoke; - tileDamageMultiplier = 0.03f; + tileDamageMultiplier = 0.02f; homingPower = 0.04f; }}; }});