summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKleopatra Angelidi <akleop@gmail.com>2013-05-23 15:20:06 +0300
committerKleopatra Angelidi <akleop@gmail.com>2013-05-23 15:20:06 +0300
commitd9d5b16dc1c6c0ba39cff8641858bdd0d2642f83 (patch)
treed1a51c72ec44bb8cc2b8db0434036f98af938766
parent370d19e493d9cd74fa15cd1580b7b7a5246a602f (diff)
wrote more efficient the words that do[] checks (n5w7)
-rw-r--r--weatbag/tiles/n5w7.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/weatbag/tiles/n5w7.py b/weatbag/tiles/n5w7.py
index f38501c..face836 100644
--- a/weatbag/tiles/n5w7.py
+++ b/weatbag/tiles/n5w7.py
@@ -54,10 +54,10 @@ class Tile:
def action(self, player, do):
if self.trapped:
- if do[0]=="you" and do[1]=="will" and do[2]=="hang" and do[3]=="me":
+ if do == ["you","will","hang","me"]:
print("You dirty little human, I can only let you go now!\n")
self.trapped = False
- elif do[0]=="you" and do[1]=="will" and do[2]=="not" and do[3]=="shoot" and do[4]=="me":
+ elif do == ["you","will","not","shoot","me"]:
print("You dirty little human, I can only let you go now!\n")
self.trapped = False
else: