血量更新 修改

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

@@ -109,7 +109,7 @@ export class Hero extends ecs.Entity {
hv.uar = hero.uar[slv];
hv.crr = hero.crr[slv];
hv.dgr = hero.dgr[slv];
hv.hp= hv.hp_max =hero.hp+hero.hp_up*hv.lv ;
hv.rhp_max=hv.hp= hv.hp_max =hero.hp+hero.hp_up*hv.lv ;
hv.ap = hero.ap+hero.ap_up*hv.lv ;
hv.def= hero.def+hero.def_up*hv.lv;
hv.cd = hero.a_cd