Add next-wave-delay per-arena setting.

This commit adds a new per-arena config-file setting, next-wave-delay. When a new wave is about to spawn, a positive next-wave-delay value will cause the spawning of the wave to be delayed by that amount of seconds, similar to how first-wave-delay delays the spawning of the first wave.

By moving all of the actual spawning logic into a new method and simply referencing that as a Runnable, we can avoid having to set weird boolean flags and re-scheduling the MASpawnThread itself.

Closes #449
This commit is contained in:
Andreas Troelsen
2018-07-29 21:23:29 +02:00
parent 6f077359c6
commit 7a9b2f601f
2 changed files with 15 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ min-players: 0
max-players: 0
max-join-distance: 0
first-wave-delay: 5
next-wave-delay: 0
wave-interval: 15
final-wave: 0
monster-limit: 100