防御最多抵消50%伤害

This commit is contained in:
2024-12-26 16:54:04 +08:00
parent 295dcbda33
commit 8805666492
3 changed files with 8 additions and 8 deletions

View File

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