Core vicinity buildup system
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
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,
|
||||
core
|
||||
/** Higher priority blocks will always get targeted over those of lower priority, regardless of distance. */
|
||||
public class TargetPriority{
|
||||
public static final float
|
||||
base = 0f,
|
||||
constructing = 1f,
|
||||
turret = 2f,
|
||||
core = 3f;
|
||||
}
|
||||
|
||||
@@ -264,7 +264,11 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
||||
//region utility methods
|
||||
|
||||
public void addPlan(boolean checkPrevious){
|
||||
if(!block.rebuildable || (team == state.rules.defaultTeam && state.isCampaign() && !block.isVisible())) return;
|
||||
addPlan(checkPrevious, false);
|
||||
}
|
||||
|
||||
public void addPlan(boolean checkPrevious, boolean ignoreConditions){
|
||||
if(!ignoreConditions && (!block.rebuildable || (team == state.rules.defaultTeam && state.isCampaign() && !block.isVisible()))) return;
|
||||
|
||||
Object overrideConfig = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user