fix potion recipe - revert maxCount in craft
This commit is contained in:
@@ -205,7 +205,8 @@ function Craft.craftRecipeInternal(recipe, count, storage, origItem)
|
|||||||
|
|
||||||
_G._debug({'eval', recipe.result, count })
|
_G._debug({'eval', recipe.result, count })
|
||||||
|
|
||||||
local maxCount = math.floor((recipe.maxCount or 64) / recipe.count)
|
--local maxCount = math.floor((recipe.maxCount or 64) / recipe.count)
|
||||||
|
local maxCount = recipe.maxCount or math.floor(64 / recipe.count)
|
||||||
|
|
||||||
for key,icount in pairs(Craft.sumIngredients(recipe)) do
|
for key,icount in pairs(Craft.sumIngredients(recipe)) do
|
||||||
local itemCount = Craft.getItemCount(origItem.ingredients, key)
|
local itemCount = Craft.getItemCount(origItem.ingredients, key)
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ function PotionImportTask:cycle(context)
|
|||||||
local recipe = {
|
local recipe = {
|
||||||
count = 3,
|
count = 3,
|
||||||
ingredients = { },
|
ingredients = { },
|
||||||
maxCount = 3,
|
maxCount = 1,
|
||||||
}
|
}
|
||||||
local list = bs.adapter.list()
|
local list = bs.adapter.list()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user