feat(战斗系统): 实现攻击和技能伤害加成天赋效果
添加ATK_DMG和SKILL_DMG天赋类型,支持在普通攻击和技能释放时应用额外伤害 修改SACastSystem以处理不同类型的伤害加成 重构TalEffet枚举并更新相关配置
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user