You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Love the addon, have a minor suggestion for the craft queue.
With multicraft heavy recipes like cooking it's quite easy to overcraft an amount when using a TSM daily rate multiplier. It would be nice to have the queued amount of crafts be based on the amount of items crated by the craft.
E.g In RecipeScan with the function CraftSim.RECIPE_SCAN:SendToCraftQueue()
Changing if restockAmount >=1 then CraftSim.CRAFTQ:AddRecipe { recipeData = recipeData, amount = restockAmount } end
Into if restockAmount >=1 then restockAmount = math.max(1, math.floor(restockAmount / recipeData.expectedYieldPerCraft)) CraftSim.CRAFTQ:AddRecipe { recipeData = recipeData, amount = restockAmount } end
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi mate,
Love the addon, have a minor suggestion for the craft queue.
With multicraft heavy recipes like cooking it's quite easy to overcraft an amount when using a TSM daily rate multiplier. It would be nice to have the queued amount of crafts be based on the amount of items crated by the craft.
E.g In RecipeScan with the function
CraftSim.RECIPE_SCAN:SendToCraftQueue()Changing
if restockAmount >=1 thenCraftSim.CRAFTQ:AddRecipe { recipeData = recipeData, amount = restockAmount }endInto
if restockAmount >=1 thenrestockAmount = math.max(1, math.floor(restockAmount / recipeData.expectedYieldPerCraft))CraftSim.CRAFTQ:AddRecipe { recipeData = recipeData, amount = restockAmount }endAppreciate the work you put in, cheers.
Beta Was this translation helpful? Give feedback.
All reactions