fix "you are a cursedtraitor"

also add tags support to all the other wolf roles in case we do that sometime
This commit is contained in:
jacob1 2016-10-15 22:16:35 -04:00
parent 4e8f083dc2
commit 9c041e253c
2 changed files with 14 additions and 10 deletions

View File

@ -433,19 +433,19 @@
"wolfchat_new_member": "\u0002{0}\u0002 is now a \u0002{1}\u0002!",
"amnesia_clear": "Your amnesia clears and you now remember that you are a{0} \u0002{1}\u0002!",
"amnesia_wolfchat": "\u0002{0}\u0002 is now a \u0002{1}\u0002!",
"wolf_notify": "You are a \u0002wolf\u0002. It is your job to kill all the villagers. Use \"kill <nick>\" to kill a villager.",
"cursed_traitor_notify": "You are a \u0002cursed traitor\u0002. Normally, you would be seen as a villager by the seer and oracle, but since you're cursed, you are seen as a wolf.",
"traitor_notify": "You are a \u0002traitor\u0002. You are exactly like a villager and not even a seer or oracle can see your true identity, only detectives and augurs can.",
"werecrow_notify": "You are a \u0002werecrow\u0002. You are able to fly at night. Use \"kill <nick>\" to kill a villager. Alternatively, you can use \"observe <nick>\" to check if someone is in bed or not. Observing will prevent you from participating in a killing.",
"wolf_notify": "You are a \u0002{0}wolf\u0002. It is your job to kill all the villagers. Use \"kill <nick>\" to kill a villager.",
"cursed_traitor_notify": "You are a \u0002{0}cursed traitor\u0002. Normally, you would be seen as a villager by the seer and oracle, but since you're cursed, you are seen as a wolf.",
"traitor_notify": "You are a \u0002{0}traitor\u0002. You are exactly like a villager and not even a seer or oracle can see your true identity, only detectives and augurs can.",
"werecrow_notify": "You are a \u0002{0}werecrow\u0002. You are able to fly at night. Use \"kill <nick>\" to kill a villager. Alternatively, you can use \"observe <nick>\" to check if someone is in bed or not. Observing will prevent you from participating in a killing.",
"hag_notify": "You are a \u0002{0}hag\u0002. You can hex someone to prevent them from using any special powers they may have during the next day and night. Use \"hex <nick>\" to hex them. Only detectives can reveal your true identity, seers will see you as a regular villager.",
"sorcerer_notify": "You are a \u0002{0}sorcerer\u0002. You can use \"observe <nick>\" to observe someone and determine if they are the seer, oracle, or augur. Only detectives can reveal your true identity, seers will see you as a regular villager.",
"wolf_cub_notify": "You are a \u0002wolf cub\u0002. While you cannot kill anyone, the other wolves will become enraged if you die and will get two kills the following night.",
"alpha_wolf_notify": "You are an \u0002alpha wolf\u0002. Once per game following the death of another wolf, you can bite someone by using \"bite <nick>\" to turn them into a wolf. You may also use \"kill <nick>\" to kill a villager.",
"werekitten_notify": "You are a \u0002werekitten\u0002. Due to your overwhelming cuteness, the seer always sees you as villager and the gunner will always miss you. Detectives can still reveal your true identity, however. Use \"kill <nick>\" to kill a villager.",
"wolf_cub_notify": "You are a \u0002{0}wolf cub\u0002. While you cannot kill anyone, the other wolves will become enraged if you die and will get two kills the following night.",
"alpha_wolf_notify": "You are an \u0002{0}alpha wolf\u0002. Once per game following the death of another wolf, you can bite someone by using \"bite <nick>\" to turn them into a wolf. You may also use \"kill <nick>\" to kill a villager.",
"werekitten_notify": "You are a \u0002{0}werekitten\u0002. Due to your overwhelming cuteness, the seer always sees you as villager and the gunner will always miss you. Detectives can still reveal your true identity, however. Use \"kill <nick>\" to kill a villager.",
"warlock_notify": "You are a \u0002{0}warlock\u0002. Each night you can curse someone with \"curse <nick>\" to turn them into a cursed villager, so the seer sees them as wolf. Act quickly, as your curse applies as soon as you cast it! Only detectives can reveal your true identity, seers will see you as a regular villager.",
"wolf_mystic_notify": "You are a \u0002wolf mystic\u0002. Each night you divine the number of alive good villagers who have a special role. You may also use \"kill <nick>\" to kill a villager.",
"wolf_shaman_notify": "You are a \u0002wolf shaman\u0002. You can select a player to receive a totem each night by using \"give <nick>\". You may give yourself a totem, but you may not give the same player a totem two nights in a row. If you do not give the totem to anyone, it will be given to a random player. You may also use \"kill <nick>\" to kill a villager.",
"fallen_angel_notify": "You are a \u0002fallen angel\u0002. Your sharp claws will rend any protection the villagers may have, and will likely kill living guardians as well. Use \"kill <nick>\" to kill a villager.",
"wolf_mystic_notify": "You are a \u0002{0}wolf mystic\u0002. Each night you divine the number of alive good villagers who have a special role. You may also use \"kill <nick>\" to kill a villager.",
"wolf_shaman_notify": "You are a \u0002{0}wolf shaman\u0002. You can select a player to receive a totem each night by using \"give <nick>\". You may give yourself a totem, but you may not give the same player a totem two nights in a row. If you do not give the totem to anyone, it will be given to a random player. You may also use \"kill <nick>\" to kill a villager.",
"fallen_angel_notify": "You are a \u0002{0}fallen angel\u0002. Your sharp claws will rend any protection the villagers may have, and will likely kill living guardians as well. Use \"kill <nick>\" to kill a villager.",
"undefined_role_notify": "You are a{0} \u0002{1}\u0002. There would normally be instructions here, but someone forgot to add them in. Please report this to the admins, you can PM me \"admins\" for a list of available ones.",
"wolfchat_notify": "Also, if you PM me{0}, your message will be relayed to other wolves.",
"wolf_simple": "You are a{0} \u0002{1}{2}\u0002.",

View File

@ -345,6 +345,8 @@ def on_transition_night_end(evt, cli, var):
if role in wcroles:
wevt.dispatch(cli, var, wolf, wolf)
tags = " ".join(wevt.data["tags"])
if tags:
tags += " "
if normal_notify:
msg = "{0}_notify".format(role.replace(" ", "_"))
@ -352,6 +354,8 @@ def on_transition_night_end(evt, cli, var):
if "cursed" in wevt.data["tags"]:
try:
tags2 = " ".join(wevt.data["tags"] - {"cursed"})
if tags2:
tags2 += " "
pm(cli, wolf, messages[cmsg].format(tags2))
except KeyError:
pm(cli, wolf, messages[msg].format(tags))