修复体力值固定

This commit is contained in:
YZ\249929363 2025-07-07 10:05:14 +08:00
parent f311e7624d
commit 7f70727e06

View File

@ -262,13 +262,13 @@ stopHeathTimeCutDown() {
if (cc.fx.GameConfig.GM_INFO.hp >= 5) {
this.Stamina.getChildByName("man").active = true;
this.Stamina.getChildByName("health").active = true;
NumberToImage.numberToImageNodes(4, 25, 15, "hp_", this.Stamina.getChildByName("health"), false);
NumberToImage.numberToImageNodes(cc.fx.GameConfig.GM_INFO.hp, 25, 15, "hp_", this.Stamina.getChildByName("health"), false);
this.Stamina.getChildByName("time").active = false;
}
else {
this.Stamina.getChildByName("man").active = false;
this.Stamina.getChildByName("health").active = true;
NumberToImage.numberToImageNodes(4, 25, 15, "hp_", this.Stamina.getChildByName("health"), false);
NumberToImage.numberToImageNodes(cc.fx.GameConfig.GM_INFO.hp, 25, 15, "hp_", this.Stamina.getChildByName("health"), false);
this.Stamina.getChildByName("time").active = true;
if (cc.fx.GameConfig.GM_INFO.min_Time != 0) {
let time = cc.fx.GameTool.getTimeMargin(cc.fx.GameConfig.GM_INFO.min_Time);