why? because people want it (#10719)

This commit is contained in:
EggleEgg
2025-04-25 18:02:43 +02:00
committed by GitHub
parent 8de3e28994
commit 368c44c22f
2 changed files with 8 additions and 0 deletions

View File

@@ -71,5 +71,8 @@ public class MinerAI extends AIController{
circle(core, unit.type.range / 1.8f);
}
if(!unit.type.flying){
unit.updateBoosting(unit.type.boostWhenMining || unit.floorOn().isDuct || unit.floorOn().damageTaken > 0f || unit.floorOn().isDeep());
}
}
}

View File

@@ -169,6 +169,8 @@ public class UnitType extends UnlockableContent implements Senseable{
canBoost = false,
/** if true, this unit will always boost when using builder AI */
boostWhenBuilding = true,
/** if true, this unit will always boost when using miner AI */
boostWhenMining = true,
/** if false, logic processors cannot control this unit */
logicControllable = true,
/** if false, players cannot control this unit */
@@ -974,6 +976,9 @@ public class UnitType extends UnlockableContent implements Senseable{
if(buildSpeed > 0f){
commands.add(UnitCommand.rebuildCommand, UnitCommand.assistCommand);
}
if(mineTier > 0){
commands.add(UnitCommand.mineCommand);
}
}
//healing, mining and building is only supported for flying units; pathfinding to ambiguously reachable locations is hard.