From b04e32cc63b9a47bb883e6392bc113d75e2c1362 Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 31 Oct 2024 11:13:48 -0400 Subject: [PATCH] Nova units always boost when using builder AI --- core/src/mindustry/ai/types/BuilderAI.java | 2 +- core/src/mindustry/type/UnitType.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/ai/types/BuilderAI.java b/core/src/mindustry/ai/types/BuilderAI.java index 09f8e082ab..4fa15db50e 100644 --- a/core/src/mindustry/ai/types/BuilderAI.java +++ b/core/src/mindustry/ai/types/BuilderAI.java @@ -195,7 +195,7 @@ public class BuilderAI extends AIController{ } if(!unit.type.flying){ - unit.updateBoosting(moving || unit.floorOn().isDuct || unit.floorOn().damageTaken > 0f || unit.floorOn().isDeep()); + unit.updateBoosting(unit.type.boostWhenBuilding || moving || unit.floorOn().isDuct || unit.floorOn().damageTaken > 0f || unit.floorOn().isDeep()); } } diff --git a/core/src/mindustry/type/UnitType.java b/core/src/mindustry/type/UnitType.java index e8c4cb6138..3bce5fc530 100644 --- a/core/src/mindustry/type/UnitType.java +++ b/core/src/mindustry/type/UnitType.java @@ -155,6 +155,8 @@ public class UnitType extends UnlockableContent implements Senseable{ circleTarget = false, /** if true, this unit can boost into the air if a player/processors controls it*/ canBoost = false, + /** if true, this unit will always boost when using builder AI */ + boostWhenBuilding = true, /** if false, logic processors cannot control this unit */ logicControllable = true, /** if false, players cannot control this unit */