From 2a0392bc4272a1f720b22b2280df4776ee045041 Mon Sep 17 00:00:00 2001 From: skizzerz Date: Sat, 2 Aug 2014 23:51:49 -0500 Subject: [PATCH] Add back in regular lover win code that was accidentally removed, and make lover winning with fool configurable since there was a lot of pushback for the change. Still defaults to false though --- modules/wolfgame.py | 8 +++++++- settings/wolfgame.py | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index ed9ebda..de38d19 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -1125,7 +1125,13 @@ def stop_game(cli, winner = ""): if lvrrol == "clone" and lvr in var.FINAL_ROLES: lvrrol = var.FINAL_ROLES[lvr] - if lvr in survived and winner == "monsters" and lvrrol == "monster": + if lvr in survived and not winner.startswith("@") and winner != "monsters": + iwon = True + break + elif lvr in survived and winner.startswith("@") and winner == "@" + lvr and botconfig.LOVER_WINS_WITH_FOOL: + iwon = True + break + elif lvr in survived and winner == "monsters" and lvrrol == "monster": iwon = True break if rol == "crazed shaman" or rol == "clone": diff --git a/settings/wolfgame.py b/settings/wolfgame.py index 7e9b762..cfaa3ca 100644 --- a/settings/wolfgame.py +++ b/settings/wolfgame.py @@ -49,6 +49,7 @@ GUARDIAN_ANGEL_CAN_GUARD_SELF = True START_WITH_DAY = False WOLF_STEALS_GUN = True # at night, the wolf can steal steal the victim's bullets ROLE_REVEAL = True +LOVER_WINS_WITH_FOOL = False # if fool is lynched, does their lover win with them? CARE_BOLD = False CARE_COLOR = False