装备:合成消耗
This commit is contained in:
@@ -51,10 +51,11 @@ export function checkMaterialEnough(consumes: Array<{ id: number, count: number
|
||||
} else {
|
||||
if(consumeCount < count * targetCount) {
|
||||
comJewelMap.set(id, 0);
|
||||
needConsumes.push({ id, count: consumeCount });
|
||||
isEnough = checkCurMeterial(id, count * targetCount - consumeCount);
|
||||
} else {
|
||||
comJewelMap.set(id, consumeCount - count * targetCount);
|
||||
needConsumes.push({ id, count: consumeCount - count * targetCount });
|
||||
needConsumes.push({ id, count: count * targetCount });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user