去掉局内buff
This commit is contained in:
@@ -31,8 +31,8 @@ export class HCardComp extends CCComp {
|
||||
this.heros= ecs.query(ecs.allOf(HeroModelComp));
|
||||
this.hc_name=this.node.getChildByName("name").getComponent(Label)!
|
||||
// this.icon=this.node.getChildByName("icon").getComponent(Sprite)!
|
||||
this.hp=this.node.getChildByName("hp").getChildByName("num").getComponent(Label)!
|
||||
this.ap=this.node.getChildByName("ap").getChildByName("num").getComponent(Label)!
|
||||
// this.hp=this.node.getChildByName("hp").getChildByName("num").getComponent(Label)!
|
||||
// this.ap=this.node.getChildByName("ap").getChildByName("num").getComponent(Label)!
|
||||
this.life=this.node.getChildByName("life").getComponent(ProgressBar)!
|
||||
this.pw=this.node.getChildByName("pow").getComponent(ProgressBar)!
|
||||
this.hc_name.string= this.heros[this.hi].HeroView.hero_name
|
||||
@@ -53,8 +53,8 @@ export class HCardComp extends CCComp {
|
||||
this.node.getChildByName("bg").getComponent(Sprite).grayscale=false
|
||||
this.is_dead=false
|
||||
}
|
||||
this.hp.string=(this.heros[this.hi].HeroView.hp_max).toFixed(0)
|
||||
this.ap.string=(this.heros[this.hi].HeroView.ap*(smc.vmdata.mission.ap+100)/100).toFixed(0)
|
||||
// this.hp.string=(this.heros[this.hi].HeroView.hp_max).toFixed(0)
|
||||
// this.ap.string=(this.heros[this.hi].HeroView.ap*(smc.vmdata.mission.ap+100)/100).toFixed(0)
|
||||
this.life.progress=this.heros[this.hi].HeroView.hp/this.heros[this.hi].HeroView.hp_max
|
||||
this.pw.progress=this.heros[this.hi].HeroView.pw/this.heros[this.hi].HeroView.pwm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user