From c4d243fcf19b6a7016769bd240f06b3ba6f58792 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Sat, 31 Aug 2024 00:02:53 -0700 Subject: [PATCH] Change pactbreaker forest behavior Previously, when a vigilante visited the forest and drew an evidence card, they would always learn the specific identiy of a wolf. Now, that is changed so that it applies to vampires rather than vigilantes. --- src/gamemodes/pactbreaker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gamemodes/pactbreaker.py b/src/gamemodes/pactbreaker.py index a130d972..499bcebb 100644 --- a/src/gamemodes/pactbreaker.py +++ b/src/gamemodes/pactbreaker.py @@ -209,10 +209,10 @@ def on_night_kills(self, evt: Event, var: GameState): if card == "evidence": wolf_list = [wolf] choices = [x for x in get_players(var) if x not in (wolf, visitor)] - if role != "vigilante" and len(choices) >= 4: + if role != "vampire" and len(choices) >= 4: wolf_list.extend(random.sample(choices, int(len(choices) / 4) + 2)) # give a list of potential wolves (at least one of which is wolf) - if len(wolf_list) == 1 or role == "vampire": + if len(wolf_list) == 1: visitor.send(messages["pactbreaker_forest_evidence_single"].format(wolf)) self.collected_evidence[visitor].add(wolf) else: