update
This commit is contained in:
parent
b3b7b27797
commit
b35ee619de
1 changed files with 20 additions and 2 deletions
|
|
@ -176,8 +176,15 @@ function util.add_product(recipe_name, product)
|
||||||
end
|
end
|
||||||
|
|
||||||
function add_product(recipe, product)
|
function add_product(recipe, product)
|
||||||
if recipe ~= nil and recipe.results ~= nil then
|
if recipe ~= nil then
|
||||||
table.insert(recipe.results, product)
|
if not recipe.normal then
|
||||||
|
if recipe.results == nil then
|
||||||
|
recipe.results = {{recipe.result, recipe.result_count and recipe.result_count or 1}}
|
||||||
|
end
|
||||||
|
recipe.result = nil
|
||||||
|
recipe.result_count = nil
|
||||||
|
table.insert(recipe.results, product)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -457,6 +464,17 @@ function util.set_subgroup(recipe_name, subgroup)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Set recipe icons
|
||||||
|
function util.set_icons(recipe_name, icons)
|
||||||
|
if me.bypass[recipe_name] then return end
|
||||||
|
if data.raw.recipe[recipe_name] then
|
||||||
|
me.add_modified(recipe_name)
|
||||||
|
data.raw.recipe[recipe_name].icons = icons
|
||||||
|
data.raw.recipe[recipe_name].icon = nil
|
||||||
|
data.raw.recipe[recipe_name].icon_size = nil
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function util.set_to_founding(recipe)
|
function util.set_to_founding(recipe)
|
||||||
util.set_category(recipe, "founding")
|
util.set_category(recipe, "founding")
|
||||||
util.set_subgroup(recipe, "foundry-intermediate")
|
util.set_subgroup(recipe, "foundry-intermediate")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue