feat(mobEdit): simplify mob display structure and improve readability of content

This commit is contained in:
2025-10-05 21:56:19 -05:00
parent 294a641e54
commit 009e72faca

View File

@@ -20,40 +20,32 @@ function createMobDisplay(state: MobEditorState, editing: boolean = false) {
type: 17, type: 17,
accent_color: 0xFF0000, accent_color: 0xFF0000,
components: [ components: [
{ type: 10, content: `# 👹 ${title}: \`${state.key}\`` },
{ type: 14, divider: true },
{ {
type: 9, type: 10,
components: [{ content: [
type: 10, '**📋 Estado Actual:**',
content: `👹 **${title}: \`${state.key}\`**` `**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: 14, divider: true },
{ {
type: 9, type: 10,
components: [{ content: [
type: 10, '**🎮 Instrucciones:**',
content: `**📋 Estado Actual:**\n` + '• **Base**: Nombre y categoría',
`**Nombre:** ${state.name || '❌ No configurado'}\n` + '• **Stats (JSON)**: Estadísticas del mob',
`**Categoría:** ${state.category || 'Sin categoría'}\n` + '• **Drops (JSON)**: Items que dropea',
`**Attack:** ${stats.attack || 0}\n` + '• **Guardar**: Confirma los cambios',
`**HP:** ${stats.hp || 0}\n` + '• **Cancelar**: Descarta los cambios',
`**Defense:** ${stats.defense || 0}\n` + ].join('\n'),
`**Drops:** ${Object.keys(state.drops || {}).length} items`
}]
}, },
{ 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`
}]
}
] ]
}; };
} }