From d345a724c004cf2622e67949eb35d549f78d134f Mon Sep 17 00:00:00 2001 From: George Angelopoulos Date: Sat, 20 Apr 2013 00:21:17 +0300 Subject: added south leave text for e1 --- weatbag/tiles/e1.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'weatbag/tiles/e1.py') diff --git a/weatbag/tiles/e1.py b/weatbag/tiles/e1.py index 39f73e5..55fe4cc 100644 --- a/weatbag/tiles/e1.py +++ b/weatbag/tiles/e1.py @@ -23,3 +23,10 @@ class Tile: print("Reaching up, you pick the berries.") else: print("There are no berries here.") + + def leave(self,player,direction): + if direction == 's': + print("You decide the path is too boring for you,\n" + "so you follow the stream south, looking for adventure!") + input() + return True -- cgit v1.3 From ccf803ea46650c157c717336a5f0e2c217b4f5d4 Mon Sep 17 00:00:00 2001 From: George Angelopoulos Date: Sat, 20 Apr 2013 21:24:57 +0300 Subject: Fixed bug I had made on leave method for e1. I wasn't returning True/False for North, East, West. --- weatbag/tiles/e1.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'weatbag/tiles/e1.py') diff --git a/weatbag/tiles/e1.py b/weatbag/tiles/e1.py index 55fe4cc..5a0cded 100644 --- a/weatbag/tiles/e1.py +++ b/weatbag/tiles/e1.py @@ -27,6 +27,8 @@ class Tile: def leave(self,player,direction): if direction == 's': print("You decide the path is too boring for you,\n" - "so you follow the stream south, looking for adventure!") + "so you follow the stream south, looking for adventure!") input() return True + else: + return True -- cgit v1.3 From 024db80b3f04d12cae92c669d450da2e15072bfb Mon Sep 17 00:00:00 2001 From: George Angelopoulos Date: Wed, 24 Apr 2013 17:07:42 +0300 Subject: made output string end on 3 periods This is done because this is the first string after which the player is expected to press enter to continue. Hopefully, 3 periods are an effective hint and avoid the clutter of "press enter to continue..." messages. --- weatbag/tiles/e1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'weatbag/tiles/e1.py') diff --git a/weatbag/tiles/e1.py b/weatbag/tiles/e1.py index 5a0cded..8e69a9a 100644 --- a/weatbag/tiles/e1.py +++ b/weatbag/tiles/e1.py @@ -27,7 +27,7 @@ class Tile: def leave(self,player,direction): if direction == 's': print("You decide the path is too boring for you,\n" - "so you follow the stream south, looking for adventure!") + "so you follow the stream south, looking for adventure...") input() return True else: -- cgit v1.3