From 009e72faca489905c57c9bf8840527d2240ad461 Mon Sep 17 00:00:00 2001 From: shni Date: Sun, 5 Oct 2025 21:56:19 -0500 Subject: [PATCH] feat(mobEdit): simplify mob display structure and improve readability of content --- src/commands/messages/game/mobEdit.ts | 50 +++++++++++---------------- 1 file changed, 21 insertions(+), 29 deletions(-) diff --git a/src/commands/messages/game/mobEdit.ts b/src/commands/messages/game/mobEdit.ts index ce4822d..92452f8 100644 --- a/src/commands/messages/game/mobEdit.ts +++ b/src/commands/messages/game/mobEdit.ts @@ -20,40 +20,32 @@ function createMobDisplay(state: MobEditorState, editing: boolean = false) { type: 17, accent_color: 0xFF0000, components: [ + { type: 10, content: `# 👹 ${title}: \`${state.key}\`` }, + { type: 14, divider: true }, { - type: 9, - components: [{ - type: 10, - content: `👹 **${title}: \`${state.key}\`**` - }] + type: 10, + content: [ + '**📋 Estado Actual:**', + `**Nombre:** ${state.name || '❌ No configurado'}`, + `**Categoría:** ${state.category || 'Sin categoría'}`, + `**Attack:** ${stats.attack || 0}`, + `**HP:** ${stats.hp || 0}`, + `**Defense:** ${stats.defense || 0}`, + `**Drops:** ${Object.keys(state.drops || {}).length} items`, + ].join('\n'), }, { type: 14, divider: true }, { - type: 9, - components: [{ - type: 10, - content: `**📋 Estado Actual:**\n` + - `**Nombre:** ${state.name || '❌ No configurado'}\n` + - `**Categoría:** ${state.category || 'Sin categoría'}\n` + - `**Attack:** ${stats.attack || 0}\n` + - `**HP:** ${stats.hp || 0}\n` + - `**Defense:** ${stats.defense || 0}\n` + - `**Drops:** ${Object.keys(state.drops || {}).length} items` - }] + type: 10, + content: [ + '**🎮 Instrucciones:**', + '• **Base**: Nombre y categoría', + '• **Stats (JSON)**: Estadísticas del mob', + '• **Drops (JSON)**: Items que dropea', + '• **Guardar**: Confirma los cambios', + '• **Cancelar**: Descarta los cambios', + ].join('\n'), }, - { type: 14, divider: true }, - { - type: 9, - components: [{ - type: 10, - content: `**🎮 Instrucciones:**\n` + - `• **Base**: Nombre y categoría\n` + - `• **Stats (JSON)**: Estadísticas del mob\n` + - `• **Drops (JSON)**: Items que dropea\n` + - `• **Guardar**: Confirma los cambios\n` + - `• **Cancelar**: Descarta los cambios` - }] - } ] }; }