update jiesuan
This commit is contained in:
parent
33c85b5fa1
commit
1bd8dd5010
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user