|
|
@@ -98,7 +98,7 @@ export default class Reward extends cc.Component {
|
|
|
const newRedMoney = redMoney > cash_data.redMoney ? cash_data.redMoney : redMoney;
|
|
|
this.lbl_cash.string = cash_data.money / 100 + '元';
|
|
|
this.lbl_cash_out.string = newRedMoney + '/' + cash_data.redMoney / 100;
|
|
|
- const fillRange = newRedMoney / cash_data.redMoney >= 1 ? 1 : newRedMoney / (cash_data.redMoney/100);
|
|
|
+ const fillRange = newRedMoney / cash_data.redMoney >= 1 ? 1 : newRedMoney / (cash_data.redMoney / 100);
|
|
|
// this.spr_cash_out.fillRange = fillRange;
|
|
|
cc.tween(this.spr_cash_out).to(fillRange, { fillRange: fillRange }).start();
|
|
|
if (redMoney >= cash_data.redMoney) {
|
|
|
@@ -169,7 +169,7 @@ export default class Reward extends cc.Component {
|
|
|
gData.reward.callback = null;
|
|
|
}
|
|
|
else {
|
|
|
- gData.farmGradeData.addGradeExp(ExpAddType.EAT_others);
|
|
|
+ gData.farmGradeData.addGradeExp(ExpAddType.EAT_others, world_Pos);
|
|
|
}
|
|
|
this.onClickClose();
|
|
|
}
|