From 28ac06a311d45db21629ead05bb270e671fc158b Mon Sep 17 00:00:00 2001 From: grimm <1769111741@qq.com> Date: Wed, 19 Jun 2024 15:11:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=93=E5=85=B7=E5=8A=A0=E9=80=9F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ljsd/jieling/logic/hero/TrainingLogic.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/TrainingLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/TrainingLogic.java index dd7baf910..5347314b5 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/TrainingLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/hero/TrainingLogic.java @@ -264,10 +264,10 @@ public class TrainingLogic { } STrainBuild trainBuild = STrainBuild.getMap().get(archId); STrainBuildLevel buildLevel = STrainBuildLevel.getPoolMap().get(trainBuild.getLvupCostPool()).get(architecture.getLv()); - if (buildLevel == null || buildLevel.getCost() == null){ + if (buildLevel == null || buildLevel.getSpeedUp() == null){ throw new ErrorCodeException(ErrorCode.CFG_NULL, "未找到对应等级的建筑!"); } - Map selected = ToolsUtil.selectCostItem(buildLevel.getCost()); + Map selected = ToolsUtil.selectCostItem(buildLevel.getSpeedUp()); if (!selected.containsKey(itemId)){ throw new ErrorCodeException(ErrorCode.ITEM_NOT_ENOUGH);//物品不足 }