Add win condition
This commit is contained in:
parent
ff7e93fceb
commit
2579ab220e
1 changed files with 9 additions and 0 deletions
|
@ -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)";
|
||||
|
|
Loading…
Reference in a new issue