summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Angelopoulos <l4than.d3vers@gmail.com>2013-04-20 01:23:16 +0300
committerGeorge Angelopoulos <l4than.d3vers@gmail.com>2013-04-20 01:23:16 +0300
commit3541efc01e9519743ba96a798f39ca03b352493c (patch)
tree203d38040809c3c98be412b0101c895b0628f54f
parentd345a724c004cf2622e67949eb35d549f78d134f (diff)
Added first bug tile.
-rw-r--r--weatbag/tiles/s1e1.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/weatbag/tiles/s1e1.py b/weatbag/tiles/s1e1.py
new file mode 100644
index 0000000..9f96e6b
--- /dev/null
+++ b/weatbag/tiles/s1e1.py
@@ -0,0 +1,21 @@
+from weatbag import words
+import weatbag
+
+class Tile:
+ def __init__(self):
+ self.contents = {'bug': 1}
+ pass
+
+ def describe(self):
+ print("There is a stream here.\n"
+ "It runs from South to North.")
+
+ if self.contents['bug'] > 0:
+ print("You see a huge ugly bug rush past you, "
+ "following the river south.")
+ self.contents['bug'] -= 1
+ else:
+ print("You remember this is where you saw that bug going south")
+
+ def action(self, player, do):
+ pass