Skip to content

Commit cda5fdb

Browse files
committed
Player command shows card count
1 parent e45cc5a commit cda5fdb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

eggsplode/cogs/eggsplode_game.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,15 @@ async def list_players(self, ctx: discord.ApplicationContext):
155155
(
156156
"\n".join(
157157
format_message(
158-
"players_list_item_emoji",
158+
"players_command_list_item",
159159
i + 1,
160160
(
161161
"⏩"
162162
if game.current_player_id == pid
163163
else "⚡" if game.action_player_id == pid else "👤"
164164
),
165165
pid,
166+
len(game.hands.get(pid, [])),
166167
)
167168
for i, pid in enumerate(game.players)
168169
)

resources/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
"play_section": "**{} {}**\n{}",
200200
"players": "## Players",
201201
"players_list_item": "- <@{}>",
202-
"players_list_item_emoji": "{}. {} <@{}>",
202+
"players_command_list_item": "{}. {} <@{}> ({} cards)",
203203
"predicted": "🔮 <@{}> looked at the next 3 cards on the deck!",
204204
"radioeggtive": "## ☢️ <@{}> drew the Radioeggtive card and put it back into the deck face up!",
205205
"radioeggtive_face_up": "## 💥 <@{}> drew the Radioeggtive card face up and eggsploded!\n{}",

0 commit comments

Comments
 (0)