aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/esieequest/game/Text.java2
-rw-r--r--src/esieequest/game/items/Banana.java8
2 files changed, 7 insertions, 3 deletions
diff --git a/src/esieequest/game/Text.java b/src/esieequest/game/Text.java
index b4ad037..09317c1 100644
--- a/src/esieequest/game/Text.java
+++ b/src/esieequest/game/Text.java
@@ -55,7 +55,7 @@ public enum Text {
55 WELCOME("Welcome to ESIEEquest! ESIEEquest is a new, amazingly boring adventure game."), 55 WELCOME("Welcome to ESIEEquest! ESIEEquest is a new, amazingly boring adventure game."),
56 CHALLENGE_FAILED("Challenge failed: you died from exhaustion..."), 56 CHALLENGE_FAILED("Challenge failed: you died from exhaustion..."),
57 QUIT("Thanks for wasting your time. Good bye."), 57 QUIT("Thanks for wasting your time. Good bye."),
58 KILL("You killed yourself ! Game Over."), 58 KILL("You killed yourself! Game Over."),
59 59
60 ALEA_OVERRIDE_ENABLED("Alea override enabled."), 60 ALEA_OVERRIDE_ENABLED("Alea override enabled."),
61 ALEA_OVERRIDE_DISABLED("Alea override disabled."), 61 ALEA_OVERRIDE_DISABLED("Alea override disabled."),
diff --git a/src/esieequest/game/items/Banana.java b/src/esieequest/game/items/Banana.java
index 4350463..0c7e7ba 100644
--- a/src/esieequest/game/items/Banana.java
+++ b/src/esieequest/game/items/Banana.java
@@ -1,6 +1,7 @@
1package esieequest.game.items; 1package esieequest.game.items;
2 2
3import esieequest.game.Game; 3import esieequest.game.Game;
4import esieequest.game.states.Quest;
4import esieequest.ui.View; 5import esieequest.ui.View;
5 6
6/** 7/**
@@ -20,7 +21,10 @@ public class Banana extends SimpleItem {
20 21
21 @Override 22 @Override
22 public void use(final Game game, final View view) { 23 public void use(final Game game, final View view) {
23 view.echo("Better keep it for later..."); 24 if (game.getPlayer().getCurrentQuest() == Quest.FEED_ATHANASE) {
25 view.echo("Athanase would eat this!");
26 } else {
27 view.echo("Better keep it for later...");
28 }
24 } 29 }
25
26} 30}