去除buff 相关console
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user