51 lines
1.7 KiB
Lua
51 lines
1.7 KiB
Lua
require("tin-recipe-final-stacking")
|
|
-- require("tin-recipe-final-5d")
|
|
require("tin-recipe-final-rrr")
|
|
|
|
local util = require("data-util");
|
|
|
|
util.add_product("jellynut-processing", util.item("jellyskin", 1, .25)) -- in case of clobbering
|
|
|
|
util.replace_some_ingredient("se-glass-vulcanite", mods["Krastorio2"] and "kr-sand" or "sand", 1, "tin-plate", 1)
|
|
util.add_product("se-glass-vulcanite", {type="item", name="tin-plate", amount=1, catalyst_amount=1, probability=0.8})
|
|
util.set_main_product("se-glass-vulcanite", mods["Krastorio2"] and "kr-glass" or "glass")
|
|
|
|
-- core mining balancing
|
|
util.add_to_product("se-core-fragment-omni", "tin-ore", -4)
|
|
|
|
-- Electronic circuits need final fixes
|
|
function modify_ec(recipe_name, to_replace)
|
|
if not to_replace then
|
|
to_replace = "copper-cable"
|
|
end
|
|
local amt_ec = util.get_amount(recipe_name, "electronic-circuit")
|
|
if amt_ec == 1 then
|
|
util.multiply_recipe(recipe_name, 2)
|
|
util.set_recipe_time(recipe_name, 0.5) -- faster but more complex
|
|
end
|
|
util.replace_some_ingredient(recipe_name, to_replace, 1, "solder", 1)
|
|
end
|
|
modify_ec("electronic-circuit")
|
|
modify_ec("electronic-circuit-stone")
|
|
modify_ec("electronic-circuit-wood")
|
|
modify_ec("electronic-circuit-aluminum", "aluminum-cable")
|
|
|
|
if mods.RenaiTransportation then
|
|
for i, recipe in pairs(data.raw.recipe) do
|
|
if recipe.result and data.raw.item[recipe.result] and
|
|
data.raw.item[recipe.result].subgroup == "throwers" and
|
|
recipe.result ~= "RTThrower-burner-inserter"
|
|
then
|
|
util.add_ingredient(recipe.name, "bronze-plate", 1)
|
|
end
|
|
end
|
|
end
|
|
|
|
util.size_recycler_output()
|
|
util.redo_recycling()
|
|
require("alloy-separation") -- should be after final redo_recycling
|
|
|
|
|
|
|
|
-- Must be last
|
|
util.create_list()
|