Core vicinity buildup system

This commit is contained in:
Anuken
2022-04-11 12:14:17 -04:00
parent bdeef68a0b
commit 6fe71dfe9c
12 changed files with 86 additions and 16 deletions

View File

@@ -178,8 +178,8 @@ public class Block extends UnlockableContent implements Senseable{
public BlockGroup group = BlockGroup.none;
/** List of block flags. Used for AI indexing. */
public EnumSet<BlockFlag> flags = EnumSet.of();
/** Targeting priority of this block, as seen by enemies .*/
public TargetPriority priority = TargetPriority.base;
/** Targeting priority of this block, as seen by enemies. */
public float priority = TargetPriority.base;
/** How much this block affects the unit cap by.
* The block flags must contain unitModifier in order for this to work. */
public int unitCapModifier = 0;

View File

@@ -44,6 +44,7 @@ public class ConstructBlock extends Block{
inEditor = false;
consBlocks[size - 1] = this;
sync = true;
priority = TargetPriority.constructing;
}
/** Returns a ConstructBlock by size. */