mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-31 01:44:22 +07:00
Nova units always boost when using builder AI
This commit is contained in:
parent
1d68f99c75
commit
b04e32cc63
@ -195,7 +195,7 @@ public class BuilderAI extends AIController{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!unit.type.flying){
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,6 +155,8 @@ public class UnitType extends UnlockableContent implements Senseable{
|
|||||||
circleTarget = false,
|
circleTarget = false,
|
||||||
/** if true, this unit can boost into the air if a player/processors controls it*/
|
/** if true, this unit can boost into the air if a player/processors controls it*/
|
||||||
canBoost = false,
|
canBoost = false,
|
||||||
|
/** if true, this unit will always boost when using builder AI */
|
||||||
|
boostWhenBuilding = true,
|
||||||
/** if false, logic processors cannot control this unit */
|
/** if false, logic processors cannot control this unit */
|
||||||
logicControllable = true,
|
logicControllable = true,
|
||||||
/** if false, players cannot control this unit */
|
/** if false, players cannot control this unit */
|
||||||
|
Loading…
Reference in New Issue
Block a user