diff options
| author | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-30 18:22:59 +0300 |
|---|---|---|
| committer | Kleopatra Angelidi <akleop@gmail.com> | 2013-04-30 18:22:59 +0300 |
| commit | 4887fa9463fac79db716dac16724bf8008d306c4 (patch) | |
| tree | e4a505e82752450f55eb673eb3d431c60138775e /weatbag | |
| parent | 2fab6d8b879aa21819c9dccf14f8b15b4a9c808f (diff) | |
merged two ifs on leave function in one
Diffstat (limited to 'weatbag')
| -rw-r--r-- | weatbag/tiles/n3w4.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/weatbag/tiles/n3w4.py b/weatbag/tiles/n3w4.py index d4f238b..aeb58f9 100644 --- a/weatbag/tiles/n3w4.py +++ b/weatbag/tiles/n3w4.py @@ -10,10 +10,7 @@ class Tile: print("Sorry, I don't understand.\n") def leave(self, player, direction): - if direction == "n": - print("No trespasing. Violators will vanish without a trace.\n") - return False - elif direction == "w": + if direction in ('n', 'w'): print("No trespasing. Violators will vanish without a trace.\n") return False else: |
