Cleanup, re-implementations

This commit is contained in:
Anuken
2020-04-24 11:01:17 -04:00
parent 018fe5dea2
commit 1b2e10d355
7 changed files with 63 additions and 97 deletions

View File

@@ -11,7 +11,6 @@ public enum Gamemode{
survival(rules -> {
rules.waveTimer = true;
rules.waves = true;
rules.unitDrops = true;
}, map -> map.spawns > 0),
sandbox(rules -> {
rules.infiniteResources = true;
@@ -20,7 +19,6 @@ public enum Gamemode{
rules.respawnTime = 0f;
}),
attack(rules -> {
rules.unitDrops = true;
rules.attackMode = true;
}, map -> map.teams.contains((int)state.rules.waveTeam.id)),
pvp(rules -> {

View File

@@ -25,8 +25,6 @@ public class Rules{
public boolean enemyCheat;
/** Whether the game objective is PvP. Note that this enables automatic hosting. */
public boolean pvp;
/** Whether enemy units drop random items on death. */
public boolean unitDrops = true;
/** Whether reactors can explode and damage other blocks. */
public boolean reactorExplosions = true;
/** How fast unit pads build units. */