From 8656fbcd6810b356d60d95778888f771141cbc81 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Sat, 31 Aug 2024 14:19:34 -0700 Subject: [PATCH] Fix victim message when vig kills them in square --- messages/en.json | 3 ++- src/gamemodes/pactbreaker.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/messages/en.json b/messages/en.json index e62f10dc..553f1c69 100644 --- a/messages/en.json +++ b/messages/en.json @@ -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}!", diff --git a/src/gamemodes/pactbreaker.py b/src/gamemodes/pactbreaker.py index ba912212..c38045e6 100644 --- a/src/gamemodes/pactbreaker.py +++ b/src/gamemodes/pactbreaker.py @@ -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