Removed BaseAI

This commit is contained in:
Anuken
2022-02-18 21:38:24 -05:00
parent 20b10e924b
commit c1bc97ec51
13 changed files with 7 additions and 352 deletions

View File

@@ -201,11 +201,7 @@ public class Rules{
/** A team-specific ruleset. */
public static class TeamRule{
/** Whether to use building AI. TODO remove, it is terrible. */
public boolean ai;
/** TODO Tier of blocks/designs that the AI uses for building. [0, 1] */
public float aiTier = 1f;
/** Whether, when AI is enabled, ships should be spawned from the core. */
/** Whether, when AI is enabled, ships should be spawned from the core. TODO remove / unnecessary? */
public boolean aiCoreSpawn = true;
/** If true, blocks don't require power or resources. */
public boolean cheat;

View File

@@ -223,8 +223,6 @@ public class Teams{
public final Seq<CoreBuild> cores = new Seq<>();
public final Team team;
/** Handles building ""bases"". */
public @Nullable BaseAI baseAi;
/** Handles RTS unit control. */
public @Nullable RtsAI rtsAi;
@@ -330,7 +328,7 @@ public class Teams{
/** @return whether this team is controlled by the AI and builds bases. */
public boolean hasAI(){
return team.rules().ai;
return team.rules().rtsAi;
}
@Override