chore: 移除游戏内天赋系统相关代码

1.  删除所有TalentType相关导入和天赋数据存储逻辑
2.  移除英雄属性天赋加成计算逻辑
3.  移除卡牌购买、刷新、售卖的天赋优惠逻辑
4.  将getTalentValue方法降级为空实现
5.  清理多余的空行代码格式
This commit is contained in:
pan
2026-06-03 10:01:34 +08:00
parent 18cbc1c75c
commit 612bcee5a1
8 changed files with 14 additions and 89 deletions

View File

@@ -13,7 +13,6 @@ import { Attrs} from "../common/config/HeroAttrs";
import { MoveComp } from "./MoveComp";
import { mLogger } from "../common/Logger";
import { FieldSkillType } from "../common/config/SkillSet";
import { TalentType } from "../common/config/TalentSet";
/** 英雄实体:负责英雄节点创建、属性初始化、入场动画与销毁流程 */
@ecs.register(`Hero`)
@@ -133,21 +132,9 @@ export class Hero extends ecs.Entity {
model.base_ap = base_ap;
model.base_hp = base_hp;
// 应用天赋加成
if (model.fac === FacSet.HERO) {
let apBonus = HeroAttrsComp.getTalentValue(TalentType.Attack); // 攻击强化
let hpBonus = HeroAttrsComp.getTalentValue(TalentType.Hp); // 生命强化
model.ap = base_ap * (1 + apBonus / 100);
model.hp = model.hp_max = base_hp * (1 + hpBonus / 100);
model.critical = HeroAttrsComp.getTalentValue(TalentType.Critical); // 暴击强化
model.wfuny = HeroAttrsComp.getTalentValue(TalentType.WindFury); // 风怒强化
model.freeze_chance = HeroAttrsComp.getTalentValue(TalentType.Freeze); // 冰冻强化
model.puncture_chance = HeroAttrsComp.getTalentValue(TalentType.Puncture); // 穿刺强化
// 护盾强化 和 亡语强化 在对应逻辑中应用
} else {
model.ap = base_ap;
model.hp = model.hp_max = base_hp;
}
// 英雄与怪物统一使用基础值(天赋系统已移除)
model.ap = base_ap;
model.hp = model.hp_max = base_hp;
model.speed = hero.speed ?? 800;