再来一局 完善, todo : mission 添加自定义的 定时运行队列 方便销毁
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user