diff --git a/modules/wolfgame.py b/modules/wolfgame.py index ee7bd19..39f24b0 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -907,7 +907,9 @@ def chk_decision(cli, force = ""): var.JESTERS.append(votee) if var.ROLE_REVEAL: - lmsg = random.choice(var.LYNCH_MESSAGES).format(votee, var.get_reveal_role(votee)) + rrole = var.get_reveal_role(votee) + an = "n" if rrole[0] in ('a', 'e', 'i', 'o', 'u') else "" + lmsg = random.choice(var.LYNCH_MESSAGES).format(votee, an, rrole) else: lmsg = random.choice(var.LYNCH_MESSAGES_NO_REVEAL).format(votee) cli.msg(botconfig.CHANNEL, lmsg) diff --git a/settings/wolfgame.py b/settings/wolfgame.py index f0bad33..9e4ea7d 100644 --- a/settings/wolfgame.py +++ b/settings/wolfgame.py @@ -157,11 +157,11 @@ DISABLED_ROLES = [] NO_VICTIMS_MESSAGES = ("The body of a young penguin pet is found.", "A pool of blood and wolf paw prints are found.", "Traces of wolf fur are found.") -LYNCH_MESSAGES = ("The villagers, after much debate, finally decide on lynching \u0002{0}\u0002, who turned out to be... a \u0002{1}\u0002.", - "Under a lot of noise, the pitchfork-bearing villagers lynch \u0002{0}\u0002, who turned out to be... a \u0002{1}\u0002.", - "Despite protests, the mob drags their victim to the hanging tree. \u0002{0}\u0002 succumbs to the will of the horde, and is hanged. The villagers have killed a \u0002{1}\u0002.", - "Resigned to the inevitable, \u0002{0}\u0002 is led to the gallows. Once the twitching stops, it is discovered that the village lynched a \u0002{1}\u0002.", - "Before the rope is pulled, \u0002{0}\u0002, the \u0002{1}\u0002, throws a grenade at the mob. The grenade explodes early.") +LYNCH_MESSAGES = ("The villagers, after much debate, finally decide on lynching \u0002{0}\u0002, who turned out to be... a{1} \u0002{2}\u0002.", + "Under a lot of noise, the pitchfork-bearing villagers lynch \u0002{0}\u0002, who turned out to be... a{1} \u0002{2}\u0002.", + "Despite protests, the mob drags their victim to the hanging tree. \u0002{0}\u0002 succumbs to the will of the horde, and is hanged. The villagers have killed a{1} \u0002{2}\u0002.", + "Resigned to the inevitable, \u0002{0}\u0002 is led to the gallows. Once the twitching stops, it is discovered that the village lynched a{1} \u0002{2}\u0002.", + "Before the rope is pulled, \u0002{0}\u0002, a{1} \u0002{2}\u0002, throws a grenade at the mob. The grenade explodes early.") LYNCH_MESSAGES_NO_REVEAL = ("The villagers, after much debate, finally decide on lynching \u0002{0}\u0002.", "Under a lot of noise, the pitchfork-bearing villagers lynch \u0002{0}\u0002.", "Despite protests, the mob drags their victim to the hanging tree. \u0002{0}\u0002 succumbs to the will of the horde, and is hanged.",