From 6e5cc279c4efc11f0ea8114b3a945e2a3e12d68a Mon Sep 17 00:00:00 2001 From: Dang Xuan Mai <67418054+maidxn@users.noreply.github.com> Date: Tue, 9 Apr 2024 17:18:32 +0700 Subject: [PATCH] Update text to inform players (#202) * update text to inform players * apply requested changes * fix typo --- game/roles/character.py | 2 +- json/text_template.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/game/roles/character.py b/game/roles/character.py index 38102b78..223d8fb4 100644 --- a/game/roles/character.py +++ b/game/roles/character.py @@ -79,7 +79,7 @@ def register_target(self, target_id): return invalid_target_text self.set_target(target_id) - return text_templates.generate_text(f"{self.get_role().lower()}_after_voting_text", target=f"<@{target_id}>") + return text_templates.generate_text(f"{self.get_role().lower()}_after_voting_text", target=f"<@{target_id}>") + text_templates.generate_text("inform_power_used_text") async def create_personal_channel(self, self_check=False): await self.interface.create_channel(self.channel_name) diff --git a/json/text_template.json b/json/text_template.json index 4bd788b7..3b2b6016 100644 --- a/json/text_template.json +++ b/json/text_template.json @@ -637,6 +637,13 @@ "en": ["Only use in the morning of new moon event **Punishment**!"] } }, + "inform_power_used_text": { + "params": [], + "template": { + "vi": ["\n💡 Năng lực của bạn sẽ mạnh nhất vào lúc chuyển giao đêm ngày. Hãy chờ đến sáng để xem kết quả nhá ;>"], + "en": ["\n💡 Your power is most powerful when night meets day. Just wait until morning to see the result ;>"] + } + }, "killed_users_text": { "params": ["user"], "template": {