From 1bd8dd501066ff8ab776eaa14b24aedbfcdbe4a5 Mon Sep 17 00:00:00 2001 From: "guoqing.zhu" <1521292690@qq.com> Date: Mon, 30 May 2022 13:56:59 +0800 Subject: [PATCH] update jiesuan --- assets/scripts/game/GameOverUINew.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/scripts/game/GameOverUINew.js b/assets/scripts/game/GameOverUINew.js index e83dedd1..17cd7800 100644 --- a/assets/scripts/game/GameOverUINew.js +++ b/assets/scripts/game/GameOverUINew.js @@ -218,7 +218,7 @@ cc.Class({ this.hero_bar.node.active = true; this.heroName.string = v.hero_stats.hero_name; this.hero_reward.string = v.hero_stats.reward_ceg; - this.hero_bar.progress = v.hero_stats.today_get_ceg / v.hero_stats.ceg_uplimit; + this.hero_bar.progress = (v.hero_stats.today_get_ceg + v.hero_stats.reward_ceg) / v.hero_stats.ceg_uplimit; total+=parseInt(v.hero_stats.reward_ceg); } // weapons @@ -230,7 +230,7 @@ cc.Class({ this.gunt1Name.node.active = true; this.gunt1Name.string = v.weapons_stats[0].weapon_name; this.gun1_reward.string = v.weapons_stats[0].reward_ceg; - this.gun1_bar.progress = v.weapons_stats[0].today_get_ceg / v.weapons_stats[0].ceg_uplimit; + this.gun1_bar.progress = (v.weapons_stats[0].today_get_ceg + v.weapons_stats[0].reward_ceg) / v.weapons_stats[0].ceg_uplimit; total+=parseInt(v.weapons_stats[0].reward_ceg) } if(v.weapons_stats[1]){ @@ -240,7 +240,7 @@ cc.Class({ this.gun2_reward.node.active = true; this.gunt2Name.string = v.weapons_stats[1].weapon_name; this.gun2_reward.string = v.weapons_stats[1].reward_ceg; - this.gun2_bar.progress = v.weapons_stats[1].today_get_ceg / v.weapons_stats[0].ceg_uplimit; + this.gun2_bar.progress = (v.weapons_stats[1].today_get_ceg + v.weapons_stats[1].reward_ceg) / v.weapons_stats[0].ceg_uplimit; total+=parseInt(v.weapons_stats[1].reward_ceg) } }