More tests and sector fixes

This commit is contained in:
Anuken
2025-09-28 13:30:53 -04:00
parent adc1316444
commit 6c0884a8d9
5 changed files with 8 additions and 3 deletions

View File

@@ -137,8 +137,10 @@ public class Logic implements ApplicationListener{
state.rules.infiniteResources = false;
state.rules.allowEditRules = false;
state.rules.allowEditWorldProcessors = false;
state.rules.waveTeam.rules().infiniteResources = true;
state.rules.waveTeam.rules().fillItems = true;
if(state.getPlanet().enemyInfiniteItems){
state.rules.waveTeam.rules().infiniteResources = true;
state.rules.waveTeam.rules().fillItems = true;
}
state.rules.waveTeam.rules().buildSpeedMultiplier *= state.getPlanet().enemyBuildSpeedMultiplier;
}

View File

@@ -125,6 +125,8 @@ public class Planet extends UnlockableContent{
public boolean clearSectorOnLose = false;
/** Multiplier for enemy rebuild speeds; only applied in campaign (not standard rules) */
public float enemyBuildSpeedMultiplier = 1f;
/** If true, the enemy team always has infinite items. */
public boolean enemyInfiniteItems = true;
/** If true, enemy cores are replaced with spawnpoints on this planet (for invasions) */
public boolean enemyCoreSpawnReplace = false;
/** If true, blocks in the radius of the core will be removed and "built up" in a shockwave upon landing. */