refactor(skill): 重构大招CD配置体系,统一档位管理
1. 新增大招CD档位配置ULT_CDS/ULT_CD_MAP,与普攻档位分离 2. 为职业默认值添加大招CD档配置,支持按职业类型适配 3. 改造技能编辑器与英雄向导,支持选择大招CD档位 4. 批量更新现有英雄数据与配置文件,统一使用档位化CD配置 5. 补充文档说明,规范大招CD配置规则
This commit is contained in:
@@ -31,6 +31,15 @@ export const ATK_SPEEDS = [
|
||||
{ key: 'VerySlow', label: '极慢(1.50s)', value: 5 },
|
||||
]
|
||||
|
||||
// 大招 CD 档位(与 heroSet.ts UltCdSet 对齐):按技能效果类型分档交错释放节奏
|
||||
export const ULT_CDS = [
|
||||
{ key: 'VeryFast', label: '极频(6s) 单体爆发', value: 1 },
|
||||
{ key: 'Fast', label: '高频(7s) 频繁压制', value: 2 },
|
||||
{ key: 'Normal', label: '标准(8s) 群体伤害/控制', value: 3 },
|
||||
{ key: 'Slow', label: '低频(9s) 中度团队增益', value: 4 },
|
||||
{ key: 'VerySlow', label: '稀有(10s) 全体增益/治疗/护盾', value: 5 },
|
||||
]
|
||||
|
||||
// 按职业映射普攻底座
|
||||
export const ROLE_ATK_SKILL = {
|
||||
Tank: [6004],
|
||||
@@ -54,15 +63,15 @@ export const ROLE_ULT_SKILL = {
|
||||
// 辅助类技能(任意职业可用作大招)
|
||||
export const SUPPORT_ULT = [6301, 6302, 6407, 6412, 6413, 6414, 6415, 6416, 6501, 6514, 6515, 6516, 6517, 6518, 6519]
|
||||
|
||||
// 职业默认值(新建英雄向导用):形态/攻速/稀有度/三维偏移
|
||||
// 职业默认值(新建英雄向导用):形态/攻速/大招CD档/稀有度/三维偏移
|
||||
// 数值取自现有英雄样本中位数,向导内可手动微调
|
||||
export const ROLE_DEFAULTS = {
|
||||
Tank: { typeKey: 'Melee', atkSpeed: 'Slow', rarity: 4, statBase: { hp: 20, ap: 0, def: 10 } },
|
||||
Warrior: { typeKey: 'Melee', atkSpeed: 'Slow', rarity: 4, statBase: { hp: 5, ap: 20, def: 5 } },
|
||||
Assassin: { typeKey: 'Mid', atkSpeed: 'Fast', rarity: 4, statBase: { hp: 0, ap: 30, def: 0 } },
|
||||
Archer: { typeKey: 'Long', atkSpeed: 'Normal', rarity: 4, statBase: { hp: 0, ap: 30, def: 0 } },
|
||||
Mage: { typeKey: 'Long', atkSpeed: 'Slow', rarity: 4, statBase: { hp: -5, ap: 10, def: 0 } },
|
||||
Support: { typeKey: 'Long', atkSpeed: 'Normal', rarity: 4, statBase: { hp: 10, ap: 20, def: 0 } },
|
||||
Tank: { typeKey: 'Melee', atkSpeed: 'Slow', ultCd: 'VerySlow', rarity: 4, statBase: { hp: 20, ap: 0, def: 10 } },
|
||||
Warrior: { typeKey: 'Melee', atkSpeed: 'Slow', ultCd: 'Normal', rarity: 4, statBase: { hp: 5, ap: 20, def: 5 } },
|
||||
Assassin: { typeKey: 'Mid', atkSpeed: 'Fast', ultCd: 'VeryFast', rarity: 4, statBase: { hp: 0, ap: 30, def: 0 } },
|
||||
Archer: { typeKey: 'Long', atkSpeed: 'Normal', ultCd: 'Normal', rarity: 4, statBase: { hp: 0, ap: 30, def: 0 } },
|
||||
Mage: { typeKey: 'Long', atkSpeed: 'Slow', ultCd: 'Normal', rarity: 4, statBase: { hp: -5, ap: 10, def: 0 } },
|
||||
Support: { typeKey: 'Long', atkSpeed: 'Normal', ultCd: 'VerySlow', rarity: 4, statBase: { hp: 10, ap: 20, def: 0 } },
|
||||
}
|
||||
|
||||
// 攻速档 → cd 数值 / cdExpr 表达式 映射(向导生成普攻用)
|
||||
@@ -74,6 +83,15 @@ export const ATK_SPEED_MAP = {
|
||||
VerySlow: { cd: 1.5, cdExpr: 'AtkSpeedSet[AtkSpeedLv.VerySlow].cd' },
|
||||
}
|
||||
|
||||
// 大招 CD 档 → cd 数值 / cdExpr 表达式 映射(向导/技能编辑器生成大招用,与 ULT_CDS 同源)
|
||||
export const ULT_CD_MAP = {
|
||||
VeryFast: { cd: 6, cdExpr: 'UltCdSet[UltCdLv.VeryFast].cd' },
|
||||
Fast: { cd: 7, cdExpr: 'UltCdSet[UltCdLv.Fast].cd' },
|
||||
Normal: { cd: 8, cdExpr: 'UltCdSet[UltCdLv.Normal].cd' },
|
||||
Slow: { cd: 9, cdExpr: 'UltCdSet[UltCdLv.Slow].cd' },
|
||||
VerySlow: { cd: 10, cdExpr: 'UltCdSet[UltCdLv.VerySlow].cd' },
|
||||
}
|
||||
|
||||
// 触发组 key 列表(向导/模板管理共用)
|
||||
export const TRIGGER_GROUPS = [
|
||||
{ key: 'atking', label: 'atking 攻击后' },
|
||||
|
||||
Reference in New Issue
Block a user