Browse Source

获得经验改为飞

kaka 4 years ago
parent
commit
935a0c5955
1 changed files with 2 additions and 2 deletions
  1. 2 2
      assets/script/game/module/reward/Reward.ts

+ 2 - 2
assets/script/game/module/reward/Reward.ts

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