挖宝优化
parent
de9677c67f
commit
5dd4da7c94
|
|
@ -132,7 +132,12 @@ public class SubActivity extends AbstractActivity {
|
|||
}
|
||||
|
||||
if (costItemNum <= 0 || rewardList.size() <= 0){
|
||||
throw new ErrorCodeException(ErrorCode.ITEM_NOT_ENOUGH);
|
||||
if (sBlessingConfigNew.getFloorCount() > user.getActivityManager().getSubRewardPoolInfo().getLay()){
|
||||
ActivityLogic.getInstance().resumeActivity(user, ActivityType.SUB_ACTIVITY);
|
||||
return true;
|
||||
}else {
|
||||
throw new ErrorCodeException(ErrorCode.ITEM_NOT_ENOUGH);
|
||||
}
|
||||
}
|
||||
// 消耗道具
|
||||
ItemUtil.itemCost(user, new int[][]{{costItemId,costItemNum}}, BIReason.SUB_ACTIVITY_CONSUME, 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue