宝石
This commit is contained in:
@@ -35,7 +35,7 @@ export function checkMaterialEnough(consumes:Array<{id: number, count: number}>,
|
|||||||
comJewelMap[jewelInfo.nextJewelId] = comcount + (comJewelMap[jewelInfo.nextJewelId] || 0);
|
comJewelMap[jewelInfo.nextJewelId] = comcount + (comJewelMap[jewelInfo.nextJewelId] || 0);
|
||||||
delete comJewelMap[jewelInfo.good_id];
|
delete comJewelMap[jewelInfo.good_id];
|
||||||
if (!!jewelInfo.specialCount)
|
if (!!jewelInfo.specialCount)
|
||||||
needConsumes.push({ count: jewelInfo.specialCount, id: jewelInfo.nextSpecialId});
|
needConsumes.push({ count: jewelInfo.specialCount * comcount, id: jewelInfo.nextSpecialId});
|
||||||
jewelInfo = getJewelById(jewelInfo.nextJewelId);
|
jewelInfo = getJewelById(jewelInfo.nextJewelId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user