fix no recipes mode
This commit is contained in:
1 parent
a24ac7877d
commit
b665a77ba3
1 file changed
+4
-2
@@ -269,10 +269,10 @@ function EID:simulateBagOfCrafting(componentsTable)
|
||||
{idx = 7, weight = compCounts[30] * 10, totalWeight = 0},
|
||||
{idx = 8, weight = compCounts[6] * 10, totalWeight = 0},
|
||||
{idx = 9, weight = compCounts[26] * 10, totalWeight = 0},
|
||||
{idx = 12, weight = compCounts[8] * 10}, totalWeight = 0,
|
||||
{idx = 12, weight = compCounts[8] * 10, totalWeight = 0},
|
||||
}
|
||||
if compCounts[9] + compCounts[2] + compCounts[13] + compCounts[16] == 0 then
|
||||
table.insert(poolWeights, {idx = 26, weight = compCounts[24] * 10})
|
||||
table.insert(poolWeights, {idx = 26, weight = compCounts[24] * 10, totalWeight = 0})
|
||||
end
|
||||
|
||||
local totalWeight = 0
|
||||
@@ -751,6 +751,8 @@ local function getFloorItemsString(showPreviews, roomItems)
|
||||
return floorString
|
||||
end
|
||||
|
||||
--local function
|
||||
|
||||
function EID:handleBagOfCraftingRendering()
|
||||
local curSeed = game:GetSeeds():GetStartSeed()
|
||||
--reset our calculated recipes when the game seed changes
|
||||
|
||||
Reference in new issue
Block a user