去除buff 相关console

This commit is contained in:
2024-09-11 10:44:47 +08:00
parent b5406bd9af
commit bdeb8fdf65
4 changed files with 0 additions and 22 deletions

View File

@@ -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);
}
}