feat(mobEdit): simplify mob display structure and improve readability of content
This commit is contained in:
@@ -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,
|
|
||||||
components: [{
|
|
||||||
type: 10,
|
type: 10,
|
||||||
content: `👹 **${title}: \`${state.key}\`**`
|
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: 14, divider: true },
|
||||||
{
|
{
|
||||||
type: 9,
|
|
||||||
components: [{
|
|
||||||
type: 10,
|
type: 10,
|
||||||
content: `**📋 Estado Actual:**\n` +
|
content: [
|
||||||
`**Nombre:** ${state.name || '❌ No configurado'}\n` +
|
'**🎮 Instrucciones:**',
|
||||||
`**Categoría:** ${state.category || 'Sin categoría'}\n` +
|
'• **Base**: Nombre y categoría',
|
||||||
`**Attack:** ${stats.attack || 0}\n` +
|
'• **Stats (JSON)**: Estadísticas del mob',
|
||||||
`**HP:** ${stats.hp || 0}\n` +
|
'• **Drops (JSON)**: Items que dropea',
|
||||||
`**Defense:** ${stats.defense || 0}\n` +
|
'• **Guardar**: Confirma los cambios',
|
||||||
`**Drops:** ${Object.keys(state.drops || {}).length} items`
|
'• **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`
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user