再来一局 完善, todo : mission 添加自定义的 定时运行队列 方便销毁

This commit is contained in:
2025-08-06 10:56:50 +08:00
parent 228014bc8f
commit d0f79c9207
6 changed files with 4633 additions and 3979 deletions

View File

@@ -387,9 +387,9 @@ export class HeroViewComp extends CCComp {
add_ap(ap: number,is_num:boolean=true){
// console.log("[HeroViewComp]:add_ap add:",ap,this.ap)
if(is_num){
this.ap += Math.floor(ap);
this.ap_base += Math.floor(ap);
}else{
this.ap += Math.floor(ap);
this.ap_base += Math.floor(ap/100*this.ap_base);
}
this.count_atrr(BuffAttr.ATK)
// this.BUFFCOMP.tooltip(TooltipTypes.apup,diff.toFixed(0));
@@ -398,9 +398,9 @@ export class HeroViewComp extends CCComp {
de_ap(ap: number,is_num:boolean=true){
//console.log("[HeroViewComp]:de_ap de:",ap,this.ap)
if(is_num){
this.ap -= Math.floor(ap);
this.ap_base -= Math.floor(ap);
}else{
this.ap -= Math.floor(ap/100*this.ap);
this.ap_base -= Math.floor(ap/100*this.ap_base);
}
this.count_atrr(BuffAttr.ATK)
}