From 5331cda68f868a59b861940d95fc8a51a4534e8a Mon Sep 17 00:00:00 2001 From: "Vgr E. Barry" Date: Tue, 1 May 2018 16:33:05 -0400 Subject: [PATCH] Add comments for generated message keys --- src/roles/_mystic_helper.py | 5 +++++ src/roles/_shaman_helper.py | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/roles/_mystic_helper.py b/src/roles/_mystic_helper.py index d7af84c..8e689d9 100644 --- a/src/roles/_mystic_helper.py +++ b/src/roles/_mystic_helper.py @@ -9,6 +9,11 @@ from src.containers import UserList, UserSet, UserDict, DefaultUserDict from src.messages import messages from src.events import Event +# Generated message keys used in this file: +# mystic_villagers, mystic_wolves, mystic_neutrals, mystic_win_stealers, +# mystic_night_num, mystic_day_num, mystic_info, +# mystic_simple, mystic_notify, wolf_mystic_simple, wolf_mystic_notify + def setup_variables(rolename, *, send_role, types): LAST_COUNT = UserDict() # type: Dict[users.User, Tuple[str, bool]] diff --git a/src/roles/_shaman_helper.py b/src/roles/_shaman_helper.py index 4934be2..8be1ab3 100644 --- a/src/roles/_shaman_helper.py +++ b/src/roles/_shaman_helper.py @@ -32,6 +32,12 @@ DECEIT = UserSet() # type: Set[users.User] havetotem = [] # type: List[users.User] brokentotem = set() # type: Set[users.User] +# Generated message keys used across all shaman files: +# death_totem, protection_totem, revealing_totem, narcolepsy_totem, +# silence_totem, desperation_totem, impatience_totem, pacifism_totem, +# influence_totem, exchange_totem, lycanthropy_totem, luck_totem, +# pestilence_totem, retribution_totem, misdirection_totem, deceit_totem + # To add new totem types in your custom roles/whatever.py file: # 1. Add a key to var.TOTEM_CHANCES with the totem name # 2. Add a message totemname_totem to your custom messages.json describing