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) {