Add win condition

This commit is contained in:
Mathieu Strypsteen 2024-09-23 08:11:55 +02:00
parent ff7e93fceb
commit 2579ab220e

View file

@ -73,6 +73,15 @@ public class LightningEvent extends Event {
}
}
@Override
protected void eventTimeEnded() {
if (MC13DTL.board.getPlayers(team).isEmpty()) {
eventFailed();
} else {
eventSuccess();
}
}
@Override
protected String getMessage() {
return "Survive the night while staying outdoors (you need to have direct sky light above you at all times)";