summaryrefslogtreecommitdiffstats
path: root/weatbag/tiles/n1w3.py
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2013-05-26 14:43:55 -0700
committerThomas Kluyver <takowl@gmail.com>2013-05-26 14:43:55 -0700
commit0f8ea0492007d5a330558665e00012b0b7b92fef (patch)
tree7845c107d6bfe9def38fbbc4af13fa36d68d1c74 /weatbag/tiles/n1w3.py
parent8cdd5546c6993898e6d319853ab6c7e639ab7bf0 (diff)
parent74288b83d9e99f790ef4a96fe7bfc96814bcb3d6 (diff)
Merge pull request #24 from ratmonkey/kittens
Kittens
Diffstat (limited to 'weatbag/tiles/n1w3.py')
-rw-r--r--weatbag/tiles/n1w3.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/weatbag/tiles/n1w3.py b/weatbag/tiles/n1w3.py
new file mode 100644
index 0000000..5d63235
--- /dev/null
+++ b/weatbag/tiles/n1w3.py
@@ -0,0 +1,23 @@
+class Tile:
+ map_word = "Beach rocks"
+
+ def describe(self):
+ print("Woooah! Those rocks are full of lichens!\n")
+
+ def action(self, player, do):
+ print("Sorry, I don't speak gibberish.")
+
+ def leave(self, player, direction):
+ if direction == "s":
+ print("Are you planing to throw your self to the rocks? You can't "
+ "go there!")
+ return False
+ elif direction == "n":
+ print("The rocks are way to high for you. "
+ "Unfortunately you cannot climb them.")
+ return False
+ elif direction == "w":
+ print("The rocks led you to a path uphill.")
+ return True
+ else:
+ return True