血量更新 修改

This commit is contained in:
2024-12-26 15:49:07 +08:00
parent 13bec1e640
commit 295dcbda33
7 changed files with 51 additions and 55 deletions

View File

@@ -48,9 +48,9 @@ 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
this.hp.string=this.heros[this.hi].HeroView.rhp_max
this.ap.string=this.heros[this.hi].HeroView.ap*(smc.vmdata.mission.ap+100)/100
this.life.progress=this.heros[this.hi].HeroView.hp/this.heros[this.hi].HeroView.hp_max
this.life.progress=this.heros[this.hi].HeroView.hp/this.heros[this.hi].HeroView.rhp_max
this.pw.progress=this.heros[this.hi].HeroView.pw/this.heros[this.hi].HeroView.pwm
}