Condensed unit group array

This commit is contained in:
Anuken
2019-12-25 22:26:51 -05:00
parent 9016c12d16
commit 2b22b7e7e4
9 changed files with 33 additions and 39 deletions

View File

@@ -94,7 +94,7 @@ public class MusicControl{
}
//dark based on enemies
return Mathf.chance(state.enemies() / 70f + 0.1f);
return Mathf.chance(state.enemies / 70f + 0.1f);
}
/** Plays and fades in a music track. This must be called every frame.

View File

@@ -165,7 +165,7 @@ public class Tutorial{
}
},
deposit(() -> event("deposit")),
waves(() -> state.wave > 2 && state.enemies() <= 0 && !spawner.isSpawning()){
waves(() -> state.wave > 2 && state.enemies <= 0 && !spawner.isSpawning()){
void begin(){
state.rules.waveTimer = true;
logic.runWave();