This commit is contained in:
Anuken
2020-05-21 21:15:39 -04:00
parent 4787a68a08
commit b683c3f8d5
6 changed files with 760 additions and 751 deletions

View File

@@ -3,5 +3,6 @@ package mindustry.entities;
/** A higher ordinal means a higher priority. Higher priority blocks will always get targeted over those of lower priority, regardless of distance. */
public enum TargetPriority{
base,
turret
turret,
core
}

View File

@@ -29,6 +29,7 @@ public class CoreBlock extends StorageBlock{
solid = true;
update = true;
hasItems = true;
priority = TargetPriority.core;
flags = EnumSet.of(BlockFlag.core, BlockFlag.producer, BlockFlag.unitModifier);
unitCapModifier = 10;
activeSound = Sounds.respawning;