feat(战斗系统): 实现攻击和技能伤害加成天赋效果

添加ATK_DMG和SKILL_DMG天赋类型,支持在普通攻击和技能释放时应用额外伤害
修改SACastSystem以处理不同类型的伤害加成
重构TalEffet枚举并更新相关配置
This commit is contained in:
2025-11-24 15:39:05 +08:00
parent 4ed531e100
commit 8d2ec76b01
4 changed files with 57 additions and 25 deletions

View File

@@ -433,6 +433,12 @@ export class HeroAttrsComp extends ecs.Comp {
t.count -= 1;
return true;
}
useCountValTal(eff: number): number {
const t = this.Talents[eff];
if (!t || t.value <= 0) return 0;
t.count -= 1;
return t.value;
}
useValueTalByUuid(t_uuid: number) {
const buff = this.BUFFS_TAL[t_uuid];
if (!buff) return;