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

@@ -5,7 +5,6 @@ import { Timer } from "db://oops-framework/core/common/timer/Timer";
import { FacSet, FightSet } from "../common/config/GameSet";
import { FieldSkillSet, FieldSkillType, SkillOverrides } from "../common/config/SkillSet";
import { smc } from "../common/SingletonModuleComp";
import { TalentConfig, TalentType } from "../common/config/TalentSet";
import { Attrs } from "../common/config/HeroAttrs";
import { FieldSkillHelper } from "./FieldSkillHelper";
@ecs.register('HeroAttrs')
@@ -373,14 +372,9 @@ export class HeroAttrsComp extends ecs.Comp {
/** 获取指定天赋的加成数值 */
public static getTalentValue(talentId: TalentType): number {
if (!smc || !smc.collection || !smc.collection.talents) return 0;
let level = smc.collection.talents[talentId] || 0;
if (level <= 0) return 0;
let talentInfo = TalentConfig.talents.find(t => t.id === talentId);
if (!talentInfo || !talentInfo.values || level > talentInfo.values.length) return 0;
return talentInfo.values[level - 1];
/** 获取指定天赋的加成数值 —— 天赋系统已移除,方法保留为空 stub 防止编译错误 */
public static getTalentValue(_talentId: number): number {
return 0;
}
}