光环和装备加成 都改为buff 不再使用buff

This commit is contained in:
panfudan
2025-06-25 13:44:51 +08:00
parent 03456dd990
commit 2b5ed007b4
5 changed files with 39 additions and 26 deletions

View File

@@ -112,14 +112,13 @@ export class BuffComp extends Component {
}
let buff=this.FIGHTCON[buff_key+"_buff"]
let debuff=this.FIGHTCON[buff_key+"_debuff"]
smc.vmdata[target_key].ap=this.HeroView.ap
smc.vmdata[target_key].equip_ap=buff.ATK+debuff.DEATK
smc.vmdata[target_key].equip_ap=buff.ATK
smc.vmdata[target_key].buff_ap=view_atk
smc.vmdata[target_key].debuff_ap=view_deatk
smc.vmdata[target_key].t_ap=this.HeroView.ap*(100+buff.ATK-debuff.DEATK)/100*(100+view_atk-view_deatk)/100
smc.vmdata[target_key].damage=this.HeroView.ap*(100+buff.ATK)/100*(100+view_atk-view_deatk)/100

View File

@@ -445,9 +445,9 @@ export class HeroViewComp extends CCComp {
if(this.is_boss) {buff_key="enemy"}
if(this.is_kalami) {buff_key="enemy"}
if(buff_key==null) return
let debuff=this.FIGHTCON[buff_key+"_debuff"]
let buff=this.FIGHTCON[buff_key+"_buff"]
damage=remainingDamage*(100-(buff.DEF+def)+(debuff.BURN+Burn))/100
damage=remainingDamage*(100-(buff.DEF+def)+Burn)/100
return Math.floor(damage)
}

View File

@@ -214,18 +214,18 @@ export class SkillConComp extends CCComp {
}
}
return cd*(100-bcd-buff.ATK_CD+decd+debuff.DECD)/100
return cd*(100-bcd-buff.ATK_CD)/100
}
get_count(count:number,view:HeroViewComp){
if(view.fac==FacSet.HERO){
if(view.is_master){
return count+(this.FIGHTCON.hero_buff.ATK_COUNT-this.FIGHTCON.hero_debuff.DECOUNT)
return count+(this.FIGHTCON.hero_buff.ATK_COUNT)
}else{
return count+(this.FIGHTCON.friend_buff.ATK_COUNT-this.FIGHTCON.friend_debuff.DECOUNT)
return count+(this.FIGHTCON.friend_buff.ATK_COUNT)
}
}else{
return count+(this.FIGHTCON.enemy_buff.ATK_COUNT-this.FIGHTCON.enemy_debuff.DECOUNT)
return count+(this.FIGHTCON.enemy_buff.ATK_COUNT)
}
}