Simple enemy rebuilding AI + fleeing

This commit is contained in:
Anuken
2022-02-18 17:29:06 -05:00
parent bc8842d0d7
commit 0c0adea2a4
10 changed files with 104 additions and 16 deletions

View File

@@ -210,6 +210,8 @@ public class Block extends UnlockableContent implements Senseable{
public boolean hasColor = false;
/** Whether units target this block. */
public boolean targetable = true;
/** If true, this block attacks and is considered a turret in the indexer. Building must implement Ranged. */
public boolean attacks = false;
/** If true, this block is mending-related and can be suppressed with special units/missiles. */
public boolean suppressable = false;
/** Whether the overdrive core has any effect on this block. */

View File

@@ -32,6 +32,7 @@ public class BaseTurret extends Block{
update = true;
solid = true;
outlineIcon = true;
attacks = true;
priority = TargetPriority.turret;
group = BlockGroup.turrets;
flags = EnumSet.of(BlockFlag.turret);