diff --git a/messages/en.json b/messages/en.json index 7d5dccf..9509c2e 100644 --- a/messages/en.json +++ b/messages/en.json @@ -198,6 +198,7 @@ "forever_aclone": "It appears that \u0002{0}\u0002 was cloning you, so you are now stuck as a clone forever. How sad.", "clone_success": "You will now be cloning \u0002{0}\u0002 if they die.", "clone_wolf": "\u0002{0}\u0002 cloned \u0002{1}\u0002 and has now become a wolf!", + "wolves_list": "Wolves: {0}", "no_other_wolves": "There are no other wolves.", "has_minions": "You have \u0002{0}\u0002 {1} at your command!", "lover_suicide": "Saddened by the loss of their lover, \u0002{0}\u0002, a{1} \u0002{2}\u0002, commits suicide.", diff --git a/src/roles/wildchild.py b/src/roles/wildchild.py index 19b2cb7..580f8c3 100644 --- a/src/roles/wildchild.py +++ b/src/roles/wildchild.py @@ -117,7 +117,7 @@ def on_del_player(evt, var, user, mainrole, allroles, death_triggers): new.append("\u0002{0}\u0002 ({1}{2})".format(wolf, cursed, wolfroles)) if new: - child.send("Wolves: " + ", ".join(new)) + child.send(messages["wolves_list"].format(", ".join(new))) else: child.send(messages["no_other_wolves"]) diff --git a/src/wolfgame.py b/src/wolfgame.py index 7202433..d3fe7ee 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -2400,7 +2400,7 @@ def del_player(player, *, devoice=True, end_game=True, death_triggers=True, kill wolves[i] = "\u0002{0}\u0002 ({1}{2})".format(wolf, tags, wolfrole) if wolves: - clone.send("Wolves: " + ", ".join(wolves)) + clone.send(messages["wolves_list"].format(wolves)) else: clone.send(messages["no_other_wolves"]) elif mainrole == "turncoat": @@ -3368,7 +3368,7 @@ def transition_day(gameid=0): if wolves: wolf.send_messages() - victim.send("Wolves: " + ", ".join(to_send)) + victim.send(messages["wolves_list"].format(", ".join(to_send))) revt.data["novictmsg"] = False elif victim not in revt.data["dead"]: # not already dead via some other means if var.ROLE_REVEAL in ("on", "team"): @@ -3847,7 +3847,7 @@ def check_exchange(cli, actor, nick): elif nick_role == "minion": wolves = list_players(var.WOLF_ROLES) random.shuffle(wolves) - pm(cli, actor, "Wolves: " + ", ".join(wolves)) + pm(cli, actor, messages["wolves_list"].format(", ".join(wolves))) elif nick_role == "turncoat": var.TURNCOATS[actor] = ("none", -1) @@ -3865,7 +3865,7 @@ def check_exchange(cli, actor, nick): elif actor_role == "minion": wolves = list_players(var.WOLF_ROLES) random.shuffle(wolves) - pm(cli, nick, "Wolves: " + ", ".join(wolves)) + pm(cli, nick, messages["wolves_list"].format(", ".join(wolves))) elif actor_role == "turncoat": var.TURNCOATS[nick] = ("none", -1) @@ -4786,7 +4786,7 @@ def transition_night(): minion.send(messages["minion_simple"]) else: minion.send(messages["minion_notify"]) - minion.send("Wolves: " + ", ".join(p.nick for p in wolves)) + minion.send(messages["wolves_list"].format(", ".join(p.nick for p in wolves))) for g in var.GUNNERS: if g not in ps: