refactor(hero): 重命名天赋相关方法以区分计数型和数值型

将计数型天赋操作方法从addTalent/consumeTalent重命名为addCountTal/useCountTal
将数值型天赋操作方法从addTalBuff/clearTalBuff重命名为addValueTal/useValueTalByUuid
更新相关文档和调用代码以保持一致性
This commit is contained in:
2025-11-24 10:27:38 +08:00
parent aefe3d6d06
commit 4ed531e100
5 changed files with 36 additions and 30 deletions

View File

@@ -163,13 +163,13 @@ export class SACastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdat
}, delay);
//风怒wfuny 只针对 普通攻击起效
if (hset === HSSet.atk && heroAttrs.consumeTalent(TalEffet.WFUNY)){
if (hset === HSSet.atk && heroAttrs.useCountTal(TalEffet.WFUNY)){
heroView.playSkillEffect(s_uuid);
//需要再添加 风怒动画
this.createSkill(s_uuid, heroView,targets);
}
// 双技能 只针对 技能起效
if(hset === HSSet.skill && heroAttrs.consumeTalent(TalEffet.D_SKILL)){
if(hset === HSSet.skill && heroAttrs.useCountTal(TalEffet.D_SKILL)){
targets = this.sTargets(heroView, s_uuid);
if (targets.length === 0) {
console.warn("[SACastSystem] 没有找到有效目标");