From 8c6a94e5ffabc6ae5af1f4a43b8550da15c5c9e5 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Wed, 20 Dec 2023 20:12:30 -0700 Subject: [PATCH] Make forest more dangerous Vigilantes can now be hunted in the forest, but there's a higher chance of collecting evidence on a wolf to make it a high-risk high-reward location for them. --- src/gamemodes/pactbreaker.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gamemodes/pactbreaker.py b/src/gamemodes/pactbreaker.py index ba905b21..5da6d41a 100644 --- a/src/gamemodes/pactbreaker.py +++ b/src/gamemodes/pactbreaker.py @@ -195,7 +195,9 @@ def on_night_kills(self, evt: Event, var: GameState): deck = [] for wolf in wolves: deck.append(("evidence", wolf)) - deck.append(("hunted" if wolf in visitors else "evidence", wolf)) + deck.append(("evidence", wolf)) + if wolf in visitors: + deck.append(("hunted", wolf)) while len(deck) < max(10, len(non_wolves)): deck.append(("empty-handed", None)) @@ -203,7 +205,7 @@ def on_night_kills(self, evt: Event, var: GameState): for i, visitor in enumerate(non_wolves): role = get_main_role(var, visitor) card, wolf = deck[i] - if card == "evidence" or (card == "hunted" and role == "vigilante"): + 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: