去除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

@@ -37,7 +37,6 @@ export class RoleBuffComp extends CCComp {
}
add_buff(uuid:number=0,args:any[]){
// console.log("add_buff",smc.skills[uuid]);
let new_buff={
skill_uuid:uuid,
@@ -109,7 +108,6 @@ export class RoleBuffComp extends CCComp {
}
}
console.log("buff add:",this.mv);
}
buff_remove(index:number){
if(this.buffs[index].atk>0){
@@ -124,7 +122,6 @@ export class RoleBuffComp 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)=>{
@@ -134,6 +131,5 @@ export class RoleBuffComp extends CCComp {
}
})
this.buffs = this.buffs.filter((buff:any) => buff.time > 0);
// console.log(this.buffs,this.buffs);
}
}