diff options
| author | Thomas Kluyver <takowl@gmail.com> | 2013-04-30 10:15:21 -0700 |
|---|---|---|
| committer | Thomas Kluyver <takowl@gmail.com> | 2013-04-30 10:15:21 -0700 |
| commit | e8676fe2073467b093af0abc8ccb19443ed4ecb7 (patch) | |
| tree | c25d9794e1b8c77d70c2862f07f197fc0c69f067 /weatbag/tiles/n1w1.py | |
| parent | e3612c7544341abf9e84234d4bda5f65ce8ee47a (diff) | |
| parent | 3d626b5229add94f08acc3ae3731566507fc2f7e (diff) | |
Merge pull request #22 from ratmonkey/island_rebased
Island area
Diffstat (limited to 'weatbag/tiles/n1w1.py')
| -rw-r--r-- | weatbag/tiles/n1w1.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/weatbag/tiles/n1w1.py b/weatbag/tiles/n1w1.py new file mode 100644 index 0000000..f809dc4 --- /dev/null +++ b/weatbag/tiles/n1w1.py @@ -0,0 +1,18 @@ +class Tile: + def describe(self): + print("There is a small island northwest.\n" + "Unfortunatelly, you can't swim because the sea is full of " + "electric eels so you need a transport to go there.\n" + "Luckilly to the north you see 2 children with a raft sitting " + "under a tree.\n" ) + + def action(self, player, do): + print("Waitwat?!") + + def leave(self, player, direction): + if direction == "w": + print ("You can't go there by swimming, that part is full of " + "electric eels.\n") + return False + else: + return True |
