Skip to content

Commit

Permalink
Fix victim message when vig kills them in square
Browse files Browse the repository at this point in the history
  • Loading branch information
skizzerz committed Aug 31, 2024
1 parent 8a074de commit 8656fbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,8 @@
"pactbreaker_stocks": "Examining {0:@} while they are in the stocks leads you to the conclusion that they are {1!role:article} {1!role:bold}!",
"pactbreaker_exposed": "You spot {0:@} while out last night and note the silver crossbow they appear to be carrying. It seems they are {=vigilante!role:article} {=vigilante!role:bold}!",
"pactbreaker_house_kill": "Knowing that {0:@} is {1!role:article} {1!role:bold}, you sneak into their house and fire a silver crossbow bolt at them before they have the chance to react.",
"pactbreaker_bolted": "A sharp pain alerts you to an intruder in your house as you get struck by a well-placed crossbow bolt. You spin around to look, the triumphant face of the {=vigilante!role} being the last thing you see...",
"pactbreaker_bolted_house": "A sharp pain alerts you to an intruder in your house as you get struck by a well-placed crossbow bolt. You spin around to look, the triumphant face of the {=vigilante!role} being the last thing you see...",
"pactbreaker_bolted_square": "While in the stocks, the triumphant face of the {=vigilante!role} steps in front of you and raises a crossbow. It is the last thing you see...",
"pactbreaker_house_vampire": "Knowing that {0:@} is {=vampire!role:article} {=vampire!role:bold}, you search their house for the charm allowing them to survive in the sunlight. You eventually find and destroy it, ensuring that they will become dust by dawn.",
"pactbreaker_house_daylight": "As the sun begins to dawn, you notice something is wrong! The charm that protects you from the sunlight seems to have been destroyed, causing you to very quickly burn up into ash...",
"pactbreaker_house_evidence_1": "While searching through {0:@}'s house, you discover proof that they are {1!role:article} {1!role:bold}!",
Expand Down
4 changes: 2 additions & 2 deletions src/gamemodes/pactbreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,10 @@ def on_night_death_message(self, evt: Event, var: GameState, victim: User, kille
victim.send(messages["pactbreaker_hunted"])
killer.send(messages["pactbreaker_hunter"].format(victim))
elif killer_role == "vigilante" and location is get_home(var, victim):
victim.send(messages["pactbreaker_bolted"])
victim.send(messages["pactbreaker_bolted_house"])
killer.send(messages["pactbreaker_house_kill"].format(victim, victim_role))
elif killer_role == "vigilante" and location is VillageSquare:
victim.send(messages["pactbreaker_bolted"])
victim.send(messages["pactbreaker_bolted_square"])
killer.send(messages["pactbreaker_square_kill"].format(victim, victim_role))
else:
# shouldn't happen; indicates a bug in the mode
Expand Down

0 comments on commit 8656fbc

Please sign in to comment.