去除buff 相关console
This commit is contained in:
@@ -51,7 +51,6 @@ export class HeroBuffComp extends CCComp {
|
||||
|
||||
}
|
||||
add_buff(uuid:number=0,args:any[]){
|
||||
// console.log("add_buff",smc.skills[uuid]);
|
||||
|
||||
let new_buff={
|
||||
skill_uuid:uuid,
|
||||
@@ -119,7 +118,6 @@ export class HeroBuffComp extends CCComp {
|
||||
}
|
||||
|
||||
}
|
||||
console.log("buff add:",this.mv);
|
||||
}
|
||||
buff_remove(index:number){
|
||||
if(this.buffs[index].atk>0){
|
||||
@@ -132,7 +130,6 @@ export class HeroBuffComp extends CCComp {
|
||||
// if(this.buffs[index].hp>0){
|
||||
// this.mv.hp_max-=this.buffs[index].hp;
|
||||
// }
|
||||
console.log("buff remove:",this.mv,this.buffs[index]);
|
||||
}
|
||||
buff_update(){
|
||||
this.buffs.forEach((buff:any,index:number)=>{
|
||||
@@ -142,6 +139,5 @@ export class HeroBuffComp extends CCComp {
|
||||
}
|
||||
})
|
||||
this.buffs = this.buffs.filter((buff:any) => buff.time > 0);
|
||||
// console.log(this.buffs,this.buffs);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user