refactor: 重构复活配置逻辑,移除独立复活编辑器

调整复活配置实现方式,将复活功能并入dead触发组,通过overrides配置复活相关参数,删除原ReviveEditor组件,更新前端常量与页面展示逻辑
This commit is contained in:
panFD
2026-09-03 22:44:56 +08:00
parent b0038e74c8
commit 7f81634dd1
4 changed files with 14 additions and 69 deletions

View File

@@ -210,17 +210,8 @@ function renderSingleHero(h) {
push(` ],`)
}
// revive
if (h.revive?.length) {
push(` revive: [`)
for (const r of h.revive) {
const rparts = [`lv: ${r.lv}`, `s_uuid: ${r.s_uuid}`, `r_num: ${r.r_num}`, `upr: ${r.upr}`]
if (r.name) rparts.push(`name: ${JSON.stringify(r.name)}`)
if (r.desc) rparts.push(`desc: ${JSON.stringify(r.desc)}`)
push(` { ${rparts.join(', ')} },`)
}
push(` ],`)
}
// 复活已纳入 dead 触发组,通过 dead 编辑器的 overrides 配置 revive_hp / revive_count
// 不再导出独立的 revive 字段
// bonuses
for (const bk of ['ap_bonus', 'hp_bonus', 'def_bonus']) {