删除好多英雄 专精几个英雄,继续英雄页面
This commit is contained in:
@@ -63,39 +63,11 @@ export class SkillCom extends CCComp {
|
||||
if(otCol.group != seCol.group&&otCol.tag ==0){
|
||||
this.atk_count+=1
|
||||
}
|
||||
// if(otCol.group == seCol.group&&otCol.tag ==0&&(this.tg==2||this.tg==0)){
|
||||
// this.to_console("skill onBeginContact 是对自己人的buff",seCol,otCol)
|
||||
// this.do_buff(otCol.node.getComponent(HeroViewComp))
|
||||
// }
|
||||
}
|
||||
to_console(value:any,value2:any=null,value3:any=null){
|
||||
console.log("["+this.s_name+this.s_uuid+"]:",value,value2,value3)
|
||||
}
|
||||
|
||||
do_buff(hero:any){
|
||||
this.to_console(" do_buff hero: ",hero)
|
||||
if(SkillSet[this.s_uuid].hp > 0){ //buff加血
|
||||
// let increase_hp=Math.floor(this.hp/(this.in_time/this.cd))
|
||||
let increase_hp=Math.floor(this.hp)
|
||||
hero.add_hp(increase_hp)
|
||||
}
|
||||
|
||||
if(SkillSet[this.s_uuid].apup > 0){ //buff加攻击
|
||||
// let increase_atk=Math.floor(this.apup/(this.in_time/this.cd))
|
||||
let increase_atk=Math.floor(this.apup)
|
||||
hero.add_ap(increase_atk)
|
||||
}
|
||||
|
||||
if(SkillSet[this.s_uuid].shield > 0){ //buff护盾
|
||||
console.log("do_buff shield: ",this.shield)
|
||||
hero.add_shield(this.shield)
|
||||
}
|
||||
if(SkillSet[this.s_uuid].mhp > 0){ //hp最大值
|
||||
// console.log("do_buff mhp: ",this.mhp/(this.in_time/this.cd))
|
||||
console.log("do_buff mhp: ",this.mhp)
|
||||
hero.add_hp_max(this.mhp/(this.in_time/this.cd))
|
||||
}
|
||||
}
|
||||
update(deltaTime: number) {
|
||||
if(smc.mission.pause) return
|
||||
this.toDestroy()
|
||||
|
||||
Reference in New Issue
Block a user