Skip to content

Commit

Permalink
Change pactbreaker forest behavior
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
skizzerz committed Aug 31, 2024
1 parent fcecc0d commit c4d243f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gamemodes/pactbreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c4d243f

Please sign in to comment.