Skip to content

Commit

Permalink
Fix !id message in pactbreaker
Browse files Browse the repository at this point in the history
Properly tell the user how many tokens they need to use the command.
  • Loading branch information
skizzerz committed Nov 30, 2024
1 parent 7933741 commit ac046b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@
"pactbreaker_vigilante_notify": "You are {=vigilante!role:article} {=vigilante!role:bold}. It is your job to eliminate the {=wolf!role:plural} and {=vampire!role:plural} to end their threat over the village.\n{=pactbreaker_notify!message}.\nFinally, you can use \"{=kill!command} <nick>\" to kill someone in the stocks or a known {=wolf!role} or {=vampire!role} instead of visting a location. If the person you kill is not {=wolf!role:article} {=wolf!role} or {=wolf!role:article} {=vampire!role}, you will die alongside your victim.",
"pactbreaker_villager_notify": "You are {=villager!role:article} {=villager!role:bold}. It is your job to either re-establish the pact with the {=wolf!role:plural} by killing the {=vigilante!role:plural} and {=vampire!role:plural} or to help the {=vigilante!role:plural} end the threat the {=wolf!role:plural} and {=vampire!role:plural} cause.\n{=pactbreaker_notify!message}",
"pactbreaker_notify": "You may visit the {=forest!command:bold}, {=square!command:bold}, {=streets!command:bold}, or {=graveyard!command:bold} by using \"{=visit!command} <location>\". Visiting allows you to collect evidence about other players.",
"pactbreaker_clue_notify": "You have {0:bold} clue {=token,tokens:plural({0})}. You may spend all of your clue tokens during the day (minimum 2) by using \"{=id!command} <nick>\" in PM to gain evidence on someone.",
"pactbreaker_clue_notify": "You have {0:bold} clue {=token,tokens:plural({0})}. You may spend all of your clue tokens during the day (minimum {1}) by using \"{=id!command} <nick>\" in PM to gain evidence on someone.",
"pactbreaker_info_clues": "You have {0:bold} clue {=token,tokens:plural({0})}.",
"pactbreaker_info_evidence": "You have collected evidence on the following people: {0:join}",
"pactbreaker_info_evidence_entry": "{0} ({1!role})",
Expand Down
3 changes: 2 additions & 1 deletion src/gamemodes/pactbreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,10 +538,11 @@ def on_begin_day(self, evt: Event, var: GameState):
if self.last_voted is not None:
add_lynch_immunity(var, self.last_voted, "pactbreaker")
# alert people about clue tokens they have
threshold = config.Main.get("gameplay.modes.pactbreaker.clue.identify")
for player, amount in self.clue_tokens.items():
if amount == 0:
continue
player.send(messages["pactbreaker_clue_notify"].format(amount))
player.send(messages["pactbreaker_clue_notify"].format(amount, threshold))

def on_lynch(self, evt: Event, var: GameState, votee: User, voters: Iterable[User]):
self.last_voted = votee
Expand Down

0 comments on commit ac046b8

Please sign in to comment.