summaryrefslogtreecommitdiffstats
path: root/weatbag
diff options
context:
space:
mode:
authorKleopatra Angelidi <akleop@gmail.com>2013-04-24 03:12:33 +0300
committerKleopatra Angelidi <akleop@gmail.com>2013-04-29 03:21:18 +0300
commit6d838e3e4a4152c371bc06505907b8c1574dc01a (patch)
tree25ebcf83046819e5b4270557e225d040de1fb527 /weatbag
parent6678da4fc07b3773aaac977d450b949b359a6d08 (diff)
added leave function for S
Diffstat (limited to 'weatbag')
-rw-r--r--weatbag/tiles/n2w4.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/weatbag/tiles/n2w4.py b/weatbag/tiles/n2w4.py
index a427d5e..2e917ea 100644
--- a/weatbag/tiles/n2w4.py
+++ b/weatbag/tiles/n2w4.py
@@ -30,9 +30,13 @@ class Tile:
print("\nSorry, I don't understand.")
def leave(self, player, direction):
- if direction=='w' and not self.opendoor:
+ if direction == 'w' and not self.opendoor:
print("\nFirst you need to enter the hut.")
return False
+ elif direction == 's':
+ print("Meeeeh, nothing of importance is going on there, try "
+ "another direction.")
+ return False
else:
return True