summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKleopatra Angelidi <akleop@gmail.com>2013-04-24 04:59:20 +0300
committerKleopatra Angelidi <akleop@gmail.com>2013-04-29 03:21:18 +0300
commit7dca2041d3ee309dc86bd9b0d84d5e470d83eedb (patch)
treec135519340a0e5f1abd36e7eb6049e7890f3e0e5
parent7a555d01a6a0fbe517afdfcd523826749faab014 (diff)
added leave function for n
-rw-r--r--weatbag/tiles/n3w2.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/weatbag/tiles/n3w2.py b/weatbag/tiles/n3w2.py
index 5c0add3..989cb6c 100644
--- a/weatbag/tiles/n3w2.py
+++ b/weatbag/tiles/n3w2.py
@@ -39,11 +39,15 @@ class Tile:
def leave(self, player, direction):
- if direction=='e'and not self.give_catfood:
+ if direction == 'e'and not self.give_catfood:
print("\nYou can't swim, remember the electric eels? You need a "
"transport to go across.")
return False
- return True
+ if direction == 'n':
+ print("Nothing to do there.\n")
+ return False
+ else:
+ return True
#two catfoods!
test_items = ['catfood','catfood']