feat(web/server): add dodge and accuracy stats support

1. 调整FieldEditor中光环档位默认等级为4级
2. 更新SUPPORT_ULT技能列表,新增6415、6416、6518、6519
3. 新增闪避(dodge)和命中(accuracy)属性配置:
   - 在常量中定义属性注释
   - 在前端表单添加属性编辑控件
   - 在后端渲染逻辑中支持属性导出
4. 新增测试英雄"闪避哥"用于展示新属性
This commit is contained in:
panFD
2026-09-07 21:57:07 +08:00
parent d559fdbaa4
commit a1c8f46c50
5 changed files with 114 additions and 2 deletions

View File

@@ -131,6 +131,8 @@ function renderSingleHero(h) {
)
if (h.dis != null) push(` dis: ${h.dis},`)
if (h.speed != null) push(` speed: ${h.speed},`)
if (h.dodge != null) push(` dodge: ${h.dodge},`)
if (h.accuracy != null) push(` accuracy: ${h.accuracy},`)
// skills
push(` skills: {`)
@@ -336,6 +338,8 @@ function renderHeroCsv(heroes) {
rows.push(['ap', ...sorted.map((h) => csvStatLine(h, 'ap'))])
rows.push(['hp', ...sorted.map((h) => csvStatLine(h, 'hp'))])
rows.push(['def', ...sorted.map((h) => csvStatLine(h, 'def'))])
rows.push(['dodge', ...sorted.map((h) => (h.dodge != null ? h.dodge : ''))])
rows.push(['accuracy', ...sorted.map((h) => (h.accuracy != null ? h.accuracy : ''))])
rows.push(['skill[0]_lv1', ...sorted.map((h) => csvSkillLv1(h.skills?.[0], false))])
rows.push(['skill[0]_lv2', ...sorted.map((h) => csvSkillLvUp(h.skills?.[0], 2))])
rows.push(['skill[1]_lv1', ...sorted.map((h) => csvSkillLv1(h.skills?.[1], true))])