* change wave timer to display serverside when waves exist

* show total and enemy units, not just enemy units

* format
This commit is contained in:
TranquillyUnpleasant 2022-01-02 06:22:19 +01:00 committed by GitHub
parent ec00f59b82
commit 3701ac131e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -407,10 +407,9 @@ public class ServerControl implements ApplicationListener{
info(" Playing on map &fi@ / Wave @", Strings.capitalize(Strings.stripColors(state.map.name())), state.wave);
if(state.rules.waves){
info(" @ enemies.", state.enemies);
}else{
info(" @ seconds until next wave.", (int)(state.wavetime / 60));
}
info(" @ units / @ enemies", Groups.unit.size(), state.enemies);
info(" @ FPS, @ MB used.", Core.graphics.getFramesPerSecond(), Core.app.getJavaHeap() / 1024 / 1024);
@ -466,7 +465,6 @@ public class ServerControl implements ApplicationListener{
info("&fi&lcServer: &fr@", "&lw" + arg[0]);
});
handler.register("pause", "<on/off>", "Pause or unpause the game.", arg -> {
boolean pause = arg[0].equals("on");
state.serverPaused = pause;