From 848a33f3777e0125c7f583818be06ef20c9bea48 Mon Sep 17 00:00:00 2001 From: zhangxk Date: Fri, 14 Jul 2023 16:13:33 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(=E7=8E=89=E7=9F=B3=E4=B8=80?= =?UTF-8?q?=E9=94=AE=E5=90=88=E6=88=90):=20=E4=BF=AE=E5=A4=8D5=E5=93=81?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=8D=876=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/role/checkMaterial.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/game-server/app/services/role/checkMaterial.ts b/game-server/app/services/role/checkMaterial.ts index 4103a43c9..54e06297d 100644 --- a/game-server/app/services/role/checkMaterial.ts +++ b/game-server/app/services/role/checkMaterial.ts @@ -234,7 +234,7 @@ export async function getCurItem(roleId: string, itId: number) { let stoneItId = gameData.stoneItId.get(itId); let goodIds = []; for (const { good_id, lv } of stoneItId) { - if (lv >= ITID_STONE_LIMIT) continue; + if (lv > ITID_STONE_LIMIT) continue; let nextLvMaterial = await getComposeStoneNeedCost(good_id); if (!nextLvMaterial) continue; for (let material of nextLvMaterial) { @@ -305,7 +305,14 @@ export async function getComposeStoneCostAndAdd(curItem, itId) { nextLvCount = Math.min(nextLvCount, Math.floor((tempCount1 + tempCount2) / material.count)); } - if (nextLvCount == 0) continue;// 不能升品 + if (nextLvCount == 0) { + // console.log('---------------- curItem', curItem); + // console.log('---------------- indexLv', indexLv); + // console.log('---------------- nextLvCount', nextLvCount); + // console.log('---------------- allCostItem', allCostItem); + // console.log('---------------- allAddItem', allAddItem); + continue;// 不能升品 + } // 消耗 for (let material of nextLvMaterial) {