From b73015affa1119b31b8e35d22f3942f0d8f34f12 Mon Sep 17 00:00:00 2001 From: Ammon Smith Date: Thu, 26 Apr 2018 22:41:03 -0700 Subject: [PATCH] Send "has_minions" message to wolves. --- messages/en.json | 1 + src/roles/wolf.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/messages/en.json b/messages/en.json index bd53edb..17ea321 100644 --- a/messages/en.json +++ b/messages/en.json @@ -199,6 +199,7 @@ "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!", "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.", "lover_suicide_no_reveal": "Saddened by the loss of their lover, \u0002{0}\u0002 commits suicide.", "assassin_fail_totem": "Before dying, \u0002{0}\u0002 quickly attempts to slit \u0002{1}\u0002's throat; however, {1}'s totem emits a brilliant flash of light, causing the attempt to miss.", diff --git a/src/roles/wolf.py b/src/roles/wolf.py index 1c98be3..9d41934 100644 --- a/src/roles/wolf.py +++ b/src/roles/wolf.py @@ -398,6 +398,12 @@ def on_transition_night_end(evt, var): an = "n" wolf.send(messages["wolf_simple"].format(an, tags, role)) # !simple + + if var.FIRST_NIGHT: + minions = len(get_all_players(("minion",))) + if minions > 0: + wolf.send(messages["has_minions"].format(minions, plural("minion", minions))) + pl = ps[:] random.shuffle(pl) pl.remove(wolf) # remove self from list