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