Skip to content

Commit

Permalink
Bugfixes and tweaks
Browse files Browse the repository at this point in the history
- Fix issue with evidence sharing
- Increase chances of obtaining evidence against non-vampires when they
  aren't home. Additionally, it is now possible to collect evidence of
  villagers at their house.
  • Loading branch information
skizzerz committed Dec 19, 2023
1 parent 10eb1a7 commit ccbb420
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gamemodes/pactbreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def on_night_kills(self, evt: Event, var: GameState):
if shared_evidence - self.collected_evidence[visitor]:
entries = []
for target in shared_evidence - self.collected_evidence[visitor]:
entries.append(messages["players_list_entry"].format(target, "", get_main_role(var, target)))
entries.append(messages["players_list_entry"].format(target, "", (get_main_role(var, target),)))
visitor.send(messages["pactbreaker_square_share"].format(entries))
self.collected_evidence[visitor].update(shared_evidence)
else:
Expand All @@ -335,9 +335,9 @@ def on_night_kills(self, evt: Event, var: GameState):
owner_role = get_main_role(var, owner)
deck = ["empty-handed",
"empty-handed",
"empty-handed",
"empty-handed" if owner_role in ("villager", "vampire", "vigilante") else "evidence",
"empty-handed" if owner_role == "villager" or is_home else "evidence"]
"empty-handed" if owner_role != "wolf" else "evidence",
"empty-handed" if owner_role == "vampire" or is_home else "evidence",
"empty-handed" if is_home else "evidence"]
if total_draws > 5:
for i in range(total_draws - 5):
deck.append("empty-handed")
Expand Down

0 comments on commit ccbb420

Please sign in to comment.