This commit is contained in:
2025-09-01 17:27:24 +08:00
parent da0237d49c
commit 8e044fcf3c
9 changed files with 6650 additions and 5553 deletions

View File

@@ -404,6 +404,7 @@ export class HeroViewComp extends CCComp {
}
// 应用buff,有基础值的需要特殊处理,其他的直接加减
apply_buff(buff_type:number,buff_value:number){
console.log("[HeroViewComp]:apply_buff",buff_type,buff_value)
switch(buff_type){
case BuffAttr.ATK: //攻击百分比
this.Attrs[BuffAttr.AP]+=Math.floor(buff_value/100*this.ap)