From fc08b790a2f9f905e4e98122645d035e67684d26 Mon Sep 17 00:00:00 2001 From: Kleopatra Angelidi Date: Wed, 15 May 2013 03:30:53 +0300 Subject: joined two leave restrictions in one (n4w7) --- weatbag/tiles/n4w7.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'weatbag/tiles/n4w7.py') diff --git a/weatbag/tiles/n4w7.py b/weatbag/tiles/n4w7.py index cd9b405..a7a0ea8 100644 --- a/weatbag/tiles/n4w7.py +++ b/weatbag/tiles/n4w7.py @@ -38,11 +38,7 @@ class Tile: print("You'll need some mice and cream.") def leave(self, player, direction): - if direction == "s": - print("It's the open sea. You can't go anywhere near by " - "swimming.\n") - return False - elif direction == "w": + if direction in ("s", "w"): print("It's the open sea. You can't go anywhere near by " "swimming.\n") return False -- cgit v1.3