Allow lover to win with piper

This commit is contained in:
Vgr E.Barry 2015-05-27 00:18:40 -04:00
parent d8ee335d58
commit 9ecb95674b

View File

@ -2118,7 +2118,7 @@ def stop_game(cli, winner = "", abort = False):
if lvr in plrl:
lvrrol = plrl[lvr]
if not winner.startswith("@") and winner != "monsters":
if not winner.startswith("@") and winner not in ("monsters", "pipers"):
iwon = True
break
elif winner.startswith("@") and winner == "@" + lvr and var.LOVER_WINS_WITH_FOOL:
@ -2127,6 +2127,9 @@ def stop_game(cli, winner = "", abort = False):
elif winner == "monsters" and lvrrol == "monster":
iwon = True
break
elif winner == "pipers" and lvrrol == "piper":
iwon = True
break
elif rol == "fool" and "@" + splr == winner:
iwon = True
elif rol == "monster" and splr in survived and winner == "monsters":