summaryrefslogtreecommitdiffstats
path: root/weatbag
diff options
context:
space:
mode:
authorKleopatra Angelidi <akleop@gmail.com>2013-04-30 18:22:59 +0300
committerKleopatra Angelidi <akleop@gmail.com>2013-04-30 18:22:59 +0300
commit4887fa9463fac79db716dac16724bf8008d306c4 (patch)
treee4a505e82752450f55eb673eb3d431c60138775e /weatbag
parent2fab6d8b879aa21819c9dccf14f8b15b4a9c808f (diff)
merged two ifs on leave function in one
Diffstat (limited to 'weatbag')
-rw-r--r--weatbag/tiles/n3w4.py5
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: