From 50c8bad672c035ecd980cb38045873e166d4d7ce Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Sun, 12 May 2013 21:44:40 +0300 Subject: added leave function for n4w6 --- weatbag/tiles/n4w6.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/weatbag/tiles/n4w6.py b/weatbag/tiles/n4w6.py index 2c7fa18..c0f5129 100644 --- a/weatbag/tiles/n4w6.py +++ b/weatbag/tiles/n4w6.py @@ -5,3 +5,14 @@ class Tile: def action(self, player, do): print("Sorry, I don't understand.\n") + + def leave(self, player, direction): + if direction == "s": + print("You follow the path uphill. There are some rocks. Just be " + "careful, they all have this gooey green stuff on them!\n") + return True + elif direction == "e": + print("You are going through the pine trees.\n") + return True + else: + return True -- cgit v1.3