|
@@ -97,7 +97,7 @@ export class HallUI extends BasePanel {
|
|
|
return;
|
|
|
}
|
|
|
WindowManager.ins.open("BoxLayer").then((com: BoxLayer) => {
|
|
|
- com?.setInfo(BOX_TYPE.LEVEL, GameConst.getLvBoxReward(Math.floor(Data.user.lv / 10)))
|
|
|
+ com?.setInfo(BOX_TYPE.LEVEL, GameConst.getLvBoxReward(Math.floor(Data.user.lv / GameConst.LvBox_Reward)))
|
|
|
});
|
|
|
break;
|
|
|
case "reward1":
|
|
@@ -108,7 +108,7 @@ export class HallUI extends BasePanel {
|
|
|
return;
|
|
|
}
|
|
|
WindowManager.ins.open("BoxLayer").then((com: BoxLayer) => {
|
|
|
- com.setInfo(BOX_TYPE.STAR, GameConst.getStarBoxReward(Math.floor(Data.user.lv / GameConst.Start_Progress)))
|
|
|
+ com?.setInfo(BOX_TYPE.STAR, GameConst.getStarBoxReward(Math.floor(Data.user.lv / GameConst.Start_Progress)))
|
|
|
});
|
|
|
break;
|
|
|
}
|