增益 再全面完善下

This commit is contained in:
2025-07-30 00:41:20 +08:00
parent 6c6fb64ab1
commit c3ecc08767
4 changed files with 35 additions and 30 deletions

View File

@@ -7,6 +7,7 @@ import { EquipAttrTarget, EquipInfo } from "../common/config/Equips";
import { HeroViewComp } from "./HeroViewComp";
import { BuffAttr } from "../common/config/SkillSet";
import { EnhancementType } from "../common/config/LevelUp";
import { TalentList } from "../common/config/TalentSet";
const { ccclass, property } = _decorator;
@@ -94,29 +95,30 @@ export class HeroConComp extends CCComp {
use_talent_card(e:GameEvent,data:any){
console.log("[HeroConCompComp]:use_talent_card",data)
switch(data.buffType){
let tal=TalentList[data.uuid]
switch(tal.buffType){
case BuffAttr.ATK:
this.heroView.TALENT[BuffAttr.ATK]+=data.value
this.heroView.TALENT[BuffAttr.ATK]+=tal.value
this.heroView.count_atrr(BuffAttr.ATK)
break
case BuffAttr.ATK_CD:
this.heroView.TALENT[BuffAttr.ATK_CD]+=data.value
this.heroView.TALENT[BuffAttr.ATK_CD]+=tal.value
this.heroView.count_atrr(BuffAttr.ATK_CD)
break
case BuffAttr.HP:
this.heroView.TALENT[BuffAttr.HP]+=data.value
this.heroView.TALENT[BuffAttr.HP]+=tal.value
break
case BuffAttr.CRITICAL:
this.heroView.TALENT[BuffAttr.CRITICAL]+=data.value
this.heroView.TALENT[BuffAttr.CRITICAL]+=tal.value
break
case BuffAttr.CRITICAL_DMG:
this.heroView.TALENT[BuffAttr.CRITICAL_DMG]+=data.value
this.heroView.TALENT[BuffAttr.CRITICAL_DMG]+=tal.value
break
case BuffAttr.DODGE:
this.heroView.TALENT[BuffAttr.DODGE]+=data.value
this.heroView.TALENT[BuffAttr.DODGE]+=tal.value
break
case BuffAttr.DEBUFF_COUNT:
this.heroView.TALENT[BuffAttr.DEBUFF_COUNT]+=data.value
this.heroView.TALENT[BuffAttr.DEBUFF_COUNT]+=tal.value
break
}
}