diff options
| author | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-24 02:54:45 +0300 |
|---|---|---|
| committer | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-29 03:21:17 +0300 |
| commit | 6678da4fc07b3773aaac977d450b949b359a6d08 (patch) | |
| tree | f41cf9d6a9039978cf1889588a9f8b497ec51061 /weatbag | |
| parent | 670811201c625f6269dd9bdd1689c03f72e99537 (diff) | |
added leave function for S
Diffstat (limited to 'weatbag')
| -rw-r--r-- | weatbag/tiles/n2w3.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/weatbag/tiles/n2w3.py b/weatbag/tiles/n2w3.py index 3d1d1ad..6c82f13 100644 --- a/weatbag/tiles/n2w3.py +++ b/weatbag/tiles/n2w3.py @@ -10,4 +10,11 @@ class Tile: def action(self, player, do): print("\nSorry, I don't understand") - + + def leave(self, player, direction): + if direction == "s": + print("STAHP! Hammer Time!\n(Meaning you just can't go to that " + "direction yet. Sorry! :))\n") + return False + else: + return True |
