From 63795d9df891b460203f513982c17eb25c96b50b Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 17 Aug 2021 22:06:29 -0400 Subject: [PATCH] public AI fields --- core/src/mindustry/ai/types/BuilderAI.java | 7 ++++--- core/src/mindustry/ai/types/MinerAI.java | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/core/src/mindustry/ai/types/BuilderAI.java b/core/src/mindustry/ai/types/BuilderAI.java index 1152361a38..6d6a0fa5c9 100644 --- a/core/src/mindustry/ai/types/BuilderAI.java +++ b/core/src/mindustry/ai/types/BuilderAI.java @@ -15,11 +15,12 @@ import static mindustry.Vars.*; public class BuilderAI extends AIController{ public static float buildRadius = 1500, retreatDst = 110f, fleeRange = 370f, retreatDelay = Time.toSeconds * 2f; + public @Nullable Unit following; + public @Nullable Teamc enemy; + public @Nullable BlockPlan lastPlan; + boolean found = false; float retreatTimer; - @Nullable Unit following; - @Nullable Teamc enemy; - @Nullable BlockPlan lastPlan; @Override public void updateMovement(){ diff --git a/core/src/mindustry/ai/types/MinerAI.java b/core/src/mindustry/ai/types/MinerAI.java index 1c1a564c38..f4a408800f 100644 --- a/core/src/mindustry/ai/types/MinerAI.java +++ b/core/src/mindustry/ai/types/MinerAI.java @@ -9,9 +9,9 @@ import mindustry.world.*; import static mindustry.Vars.*; public class MinerAI extends AIController{ - boolean mining = true; - Item targetItem; - Tile ore; + public boolean mining = true; + public Item targetItem; + public Tile ore; @Override public void updateMovement(){