修复体力值固定
This commit is contained in:
parent
f311e7624d
commit
7f70727e06
|
@ -262,13 +262,13 @@ stopHeathTimeCutDown() {
|
||||||
if (cc.fx.GameConfig.GM_INFO.hp >= 5) {
|
if (cc.fx.GameConfig.GM_INFO.hp >= 5) {
|
||||||
this.Stamina.getChildByName("man").active = true;
|
this.Stamina.getChildByName("man").active = true;
|
||||||
this.Stamina.getChildByName("health").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;
|
this.Stamina.getChildByName("time").active = false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.Stamina.getChildByName("man").active = false;
|
this.Stamina.getChildByName("man").active = false;
|
||||||
this.Stamina.getChildByName("health").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 = true;
|
this.Stamina.getChildByName("time").active = true;
|
||||||
if (cc.fx.GameConfig.GM_INFO.min_Time != 0) {
|
if (cc.fx.GameConfig.GM_INFO.min_Time != 0) {
|
||||||
let time = cc.fx.GameTool.getTimeMargin(cc.fx.GameConfig.GM_INFO.min_Time);
|
let time = cc.fx.GameTool.getTimeMargin(cc.fx.GameConfig.GM_INFO.min_Time);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user