From 674e421e27ebfc130a78fb241c37d983ddd0bfc9 Mon Sep 17 00:00:00 2001 From: lvxinran Date: Mon, 19 Oct 2020 09:59:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=AE=E9=80=9A=E5=A5=96=E5=8A=B1=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ljsd/jieling/handler/map/JourneyMap.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/JourneyMap.java b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/JourneyMap.java index 9fc20d1d2..b6314dfc9 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/JourneyMap.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/JourneyMap.java @@ -241,9 +241,9 @@ public class JourneyMap { SFreeTravel travelConfig = SFreeTravel.journeyMapByMapId.get(mapId); int[] consume = travelConfig.getConsume(); Map map = ItemUtil.arrayToMap(new int[][]{consume}); - if(!ItemUtil.checkCost(user,map)){ - throw new ErrorCodeException(ErrorCode.ITEM_NOT_ENOUGH); - } +// if(!ItemUtil.checkCost(user,map)){ +// throw new ErrorCodeException(ErrorCode.ITEM_NOT_ENOUGH); +// } int diceNum = pathInfo.getDiceNum(); List randomNum = new ArrayList<>(); @@ -282,7 +282,7 @@ public class JourneyMap { for(int i=0;i itemlistList = drop.getItemlistList(); - itemlistList.forEach(item->{ - item.toBuilder().setItemNum(item.getItemNum()*mutiNum).build(); - }); - + commonRewardArray = new int[randomNum.size()*mutiNum]; + for(int j=0;j