From 95a7af1f4e55db08d9cd19416a7669ce910812e1 Mon Sep 17 00:00:00 2001 From: Benoît LUBRANO DI SBARAGLIONE Date: Thu, 5 Jun 2014 19:03:06 +0200 Subject: Fix nospace!nospace --- src/esieequest/game/Text.java | 2 +- src/esieequest/game/items/Banana.java | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src') 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 { WELCOME("Welcome to ESIEEquest! ESIEEquest is a new, amazingly boring adventure game."), CHALLENGE_FAILED("Challenge failed: you died from exhaustion..."), QUIT("Thanks for wasting your time. Good bye."), - KILL("You killed yourself ! Game Over."), + KILL("You killed yourself! Game Over."), ALEA_OVERRIDE_ENABLED("Alea override enabled."), 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 @@ package esieequest.game.items; import esieequest.game.Game; +import esieequest.game.states.Quest; import esieequest.ui.View; /** @@ -20,7 +21,10 @@ public class Banana extends SimpleItem { @Override public void use(final Game game, final View view) { - view.echo("Better keep it for later..."); + if (game.getPlayer().getCurrentQuest() == Quest.FEED_ATHANASE) { + view.echo("Athanase would eat this!"); + } else { + view.echo("Better keep it for later..."); + } } - } -- cgit v1.2.3