feat: events
This commit is contained in:
@@ -56,9 +56,11 @@ public class Game {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
strings.print("currentDay", i + 1);
|
||||
|
||||
if (i != 0) {
|
||||
currentEvent = getRandomEvent();
|
||||
strings.print("event", currentEvent);
|
||||
currentEvent.getAction().accept(this);
|
||||
}
|
||||
|
||||
// The event can happen only once
|
||||
if (currentEvent == Events.FIRE) {
|
||||
|
||||
Reference in New Issue
Block a user