Skip to content

Commit

Permalink
Make forest more dangerous
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
skizzerz committed Dec 21, 2023
1 parent 6f590b4 commit 8c6a94e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gamemodes/pactbreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,17 @@ 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))

random.shuffle(deck)
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:
Expand Down

0 comments on commit 8c6a94e

Please sign in to comment.