Skip to content

Commit

Permalink
Pactbreaker tweaks (again)
Browse files Browse the repository at this point in the history
- Buff vigilante evidence chances at forest
- Nerf clue token chances at graveyard (this was intended to go in
  alongside the deck expansion, but I forgot to decrease the number of
  draws at the time. After further playtesting it's too stronk as-is
  though)
  • Loading branch information
skizzerz committed Dec 11, 2024
1 parent dc5d801 commit edb0866
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/gamemodes/pactbreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,9 @@ def build_deck(self, var: GameState, location: Location, visitors: set[User]) ->
num_other = num_visitors - num_wolves

if location is Forest:
deck = (["empty-handed", "evidence", "evidence"]
+ (["hunted", "hunted", "evidence"] * num_wolves)
deck = (["empty-handed"] * 2
+ ["evidence"] * 3
+ (["hunted", "hunted", "empty-handed"] * num_wolves)
+ (["evidence", "evidence", "empty-handed"] * num_other))
num_draws = 2
elif location is VillageSquare:
Expand All @@ -252,7 +253,7 @@ def build_deck(self, var: GameState, location: Location, visitors: set[User]) ->
+ ["empty-handed"] * 5
+ ["hunted", "empty-handed"] * num_wolves
+ ["empty-handed", "empty-handed"] * num_other)
num_draws = 2
num_draws = 1
elif location is Streets:
deck = (["empty-handed"] * max(0, num_visitors - 8)
+ ["evidence"] * 8
Expand Down Expand Up @@ -339,9 +340,9 @@ def on_night_kills(self, evt: Event, var: GameState):
if "hunted" in cards:
num_hunted = sum(1 for c in cards if c == "hunted")
kill_threshold = 2 if visitor_role == "vigilante" else 1
if visitor_role == "wolf":
if visitor_role == "wolf" or num_hunted < kill_threshold:
cards.extend(["evidence"] * num_hunted)
elif wolves and visitor_role != "vampire" and num_hunted >= kill_threshold:
elif wolves and visitor_role != "vampire":
wolf = wolves.pop()
evt.data["victims"].add(visitor)
evt.data["killers"][visitor].append(wolf)
Expand Down

0 comments on commit edb0866

Please sign in to comment.