Skip to content

Commit

Permalink
Update text to inform players (#202)
Browse files Browse the repository at this point in the history
* update text to inform players

* apply requested changes

* fix typo
  • Loading branch information
maidxn authored Apr 9, 2024
1 parent 8577f2c commit 6e5cc27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion game/roles/character.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 7 additions & 0 deletions json/text_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 6e5cc27

Please sign in to comment.