refactor(战斗系统): 简化属性系统并移除魔法相关属性

移除魔法攻击(MAP)、魔法防御(MDEF)、元素抗性等冗余属性
将伤害减免统一由DEF属性处理,重命名CRITICAL_RESIST为CRITICAL_RES
更新相关技能、天赋和怪物配置以适应新的属性系统
删除未使用的职业成长系数配置和基础属性映射逻辑
This commit is contained in:
walkpan
2026-01-01 22:08:26 +08:00
parent e50431dbd6
commit 5e9494e4f8
17 changed files with 88 additions and 486 deletions

View File

@@ -49,7 +49,7 @@ export const TD_OPTION_CONFIG: Record<number, IOptionGrowth> = {
// 控制与特效 (统一配置)
[Attrs.STUN_CHANCE]: { base: 1.5, grow: 0.05, desc: "眩晕概率 +{val}%", totalNote: "+40%" },
// ... 其他控制类同上
[Attrs.PIERCE]: { base: 1, grow: 0, desc: "穿透 +{val}", totalNote: "+20" },
[Attrs.PUNCTURE]: { base: 1, grow: 0, desc: "穿透 +{val}", totalNote: "+20" },
};
// 辅助函数

View File

@@ -30,7 +30,7 @@ export const TD_ENABLED_ATTRS: ReadonlySet<Attrs> = new Set<Attrs>([
Attrs.AP,
Attrs.AS,
Attrs.DIS,
Attrs.PIERCE,
Attrs.PUNCTURE,
Attrs.CRITICAL,
Attrs.CRITICAL_DMG,
Attrs.HP_MAX,
@@ -44,7 +44,7 @@ export const TD_OPTIONAL_ATTRS: ReadonlySet<Attrs> = new Set<Attrs>([
]);
export const TD_ATTR_GROUPS = {
towerCore: [Attrs.AP, Attrs.AS, Attrs.DIS, Attrs.PIERCE],
towerCore: [Attrs.AP, Attrs.AS, Attrs.DIS, Attrs.PUNCTURE],
towerBonus: [Attrs.CRITICAL, Attrs.CRITICAL_DMG],
enemyCore: [Attrs.HP_MAX, Attrs.DEF],
optional: [Attrs.SLOW_CHANCE, Attrs.GOLD_GAIN, Attrs.DMG_RED],