/** 技能选权重配置行(原 Const_weight 表,已合并删除,使用内置默认) */ export interface ISkillWeightRow { /** 数值 */ constValue: number; /** 逗号分隔参数 */ constString: string; } /** 内置默认(旧 SkillCost 表关键项) */ const DEFAULT_SKILL_WEIGHTS: Record = { 1001: { constValue: 0, constString: '70,30' }, 1002: { constValue: 0, constString: '50,35,12,3' }, 1003: { constValue: 20, constString: '' }, 1004: { constValue: 1, constString: '' }, 1005: { constValue: 0, constString: '20,5,40' }, 1006: { constValue: 0, constString: '0,0' }, 1007: { constValue: 1, constString: '' }, 1008: { constValue: 0, constString: '20,5,40' }, 1009: { constValue: 0, constString: '0,0' }, 1010: { constValue: 0, constString: '3,5' }, 1011: { constValue: 0, constString: '0,0,0,0' }, 1021: { constValue: 0, constString: '10,20,30' }, 1031: { constValue: 0, constString: '3,2|5,3' }, 1032: { constValue: 3, constString: '' }, 1100: { constValue: 3, constString: '' }, 1101: { constValue: 0, constString: '70,30' }, 1102: { constValue: 0, constString: '50,35,12,3' }, 1103: { constValue: 20, constString: '' }, 1104: { constValue: 1, constString: '' }, 1105: { constValue: 0, constString: '20,5,40' }, 1106: { constValue: 0, constString: '0,0' }, 1107: { constValue: 1, constString: '' }, 1108: { constValue: 0, constString: '20,5,40' }, 1109: { constValue: 0, constString: '0,0' }, 1110: { constValue: 0, constString: '3,5' }, 1111: { constValue: 0, constString: '0,0,0,0' }, 1121: { constValue: 0, constString: '10,20,30' }, 1201: { constValue: 0, constString: '0.5,2' }, 1202: { constValue: 0.5, constString: '' }, 1203: { constValue: 3, constString: '' }, 1204: { constValue: 15, constString: '' }, 1205: { constValue: 0, constString: '1,3,5' }, 1300: { constValue: 0, constString: '' }, 1400: { constValue: 0, constString: '18,2,36' }, 1401: { constValue: 0, constString: '1' }, 1402: { constValue: 0, constString: '18,2,36' }, 1403: { constValue: 0, constString: '1' }, 1404: { constValue: 0, constString: '5000' }, 1405: { constValue: 0, constString: '18,2,36' }, 1406: { constValue: 0, constString: '1' }, 1407: { constValue: 0, constString: '5,3,1' }, }; /** 获取技能权重配置(无表时返回内置默认) */ export function getSkillWeightRow(id: number): ISkillWeightRow { return DEFAULT_SKILL_WEIGHTS[id] ?? { constValue: 0, constString: '' }; } /** 技能权重配置 id(原 SkillCost / Const_weight 表) */ export enum SkillCostType { /** 非主动刷新——障碍物/技能权重 */ skillCostType_1001 = 1001, /** 非主动刷新——刷新品质权重 */ skillCostType_1002 = 1002, /** 非主动刷新——2个紫色技能保底阈值 */ skillCostType_1003 = 1003, /** 非主动刷新——紫色权重最小值 */ skillCostType_1004 = 1004, /** 非主动刷新——主动刷新品质权重 */ skillCostType_1005 = 1005, /** 非主动刷新——主动刷新品质保底 */ skillCostType_1006 = 1006, /** 非主动刷新——主动刷新紫色权重最小值 */ skillCostType_1007 = 1007, /** 主动刷新——刷新品质权重 */ skillCostType_1008 = 1008, /** 主动刷新——刷新品质保底 */ skillCostType_1009 = 1009, /** 主动刷新——广告刷新品质权重 */ skillCostType_1010 = 1010, /** 主动刷新——广告刷新品质保底 */ skillCostType_1011 = 1011, /** 主动刷新——广告刷新技能权重 */ skillCostType_1021 = 1021, /** 主动刷新——广告刷新技能保底 */ skillCostType_1031 = 1031, /** 主动刷新——广告刷新技能保底次数 */ skillCostType_1032 = 1032, /** 主动刷新——刷新次数上限 */ skillCostType_1100 = 1100, /** 主动刷新——障碍物/技能权重 */ skillCostType_1101 = 1101, /** 主动刷新——刷新品质权重 */ skillCostType_1102 = 1102, /** 主动刷新——2个紫色技能保底阈值 */ skillCostType_1103 = 1103, /** 主动刷新——紫色权重最小值 */ skillCostType_1104 = 1104, /** 主动刷新——主动刷新品质权重 */ skillCostType_1105 = 1105, /** 主动刷新——主动刷新品质保底 */ skillCostType_1106 = 1106, /** 主动刷新——主动刷新紫色权重最小值 */ skillCostType_1107 = 1107, /** 主动刷新——刷新品质权重(广告) */ skillCostType_1108 = 1108, /** 主动刷新——刷新品质保底(广告) */ skillCostType_1109 = 1109, /** 主动刷新——广告刷新品质权重 */ skillCostType_1110 = 1110, /** 主动刷新——广告刷新品质保底 */ skillCostType_1111 = 1111, /** 主动刷新——广告刷新技能权重 */ skillCostType_1121 = 1121, /** DPS 统计最小伤害阈值 */ skillCostType_1201 = 1201, /** DPS 统计最小伤害比例 */ skillCostType_1202 = 1202, /** DPS 统计最小技能等级 */ skillCostType_1203 = 1203, /** DPS 统计窗口秒数 */ skillCostType_1204 = 1204, /** DPS 统计采样间隔 */ skillCostType_1205 = 1205, /** 地图放置惩罚 */ skillCostType_1300 = 1300, /** 格子保底权重 */ skillCostType_1400 = 1400, /** 格子保底间隔 */ skillCostType_1401 = 1401, /** 连击保底权重 */ skillCostType_1402 = 1402, /** 连击保底间隔 */ skillCostType_1403 = 1403, /** 地图放置惩罚系数 */ skillCostType_1404 = 1404, /** 前期格子保底权重 */ skillCostType_1405 = 1405, /** 前期格子保底间隔 */ skillCostType_1406 = 1406, /** 前期格子权重 */ skillCostType_1407 = 1407, }