Nylon2/Nylon2/recipe-modify.lua
2025-10-21 15:03:55 +02:00

60 lines
No EOL
2.4 KiB
Lua

local util = require("data-util")
-- Main vanilla changes
util.replace_ingredient("construction-robot", "iron-gear-wheel", "nylon-machine-parts", 2)
-- Mod changes
util.add_ingredient("fast-transport-belt","nylon", 1)
if mods["bobassembly"] then
util.replace_ingredient("electronics-machine-2", "steel-gear-wheel", "nylon-machine-parts", 8)
end
if mods["space-exploration"] then
se_delivery_cannon_recipes["hexamethylenediamine-barrel"] = {name= "hexamethylenediamine-barrel"}
se_delivery_cannon_recipes["ethanolamine-barrel"] = {name= "ethanolamine-barrel"}
se_delivery_cannon_recipes["ethylene-glycol-barrel"] = {name= "ethylene-glycol-barrel"}
se_delivery_cannon_recipes["ethylene-oxide-barrel"] = {name= "ethylene-oxide-barrel"}
se_delivery_cannon_recipes["vinyl-acetate-barrel"] = {name= "vinyl-acetate-barrel"}
se_delivery_cannon_recipes["coal-tar-barrel"] = {name= "coal-tar-barrel"}
se_delivery_cannon_recipes["ketone-alcohol-oil-barrel"] = {name= "ketone-alcohol-oil-barrel"}
util.set_ingredient("se-vitamelange-spice","se-vitamelange-bloom", 100)
util.add_ingredient("se-vitamelange-spice", "ethanolamine", 100)
util.add_ingredient("se-chemical-gel","povidone", 2)
util.remove_ingredient("se-chemical-gel","toluene")
if mods["Krastorio2"] then
util.add_ingredient("se-space-coolant","ethylene-glycol", 5)
util.remove_ingredient("se-space-coolant","salt")
util.add_unlock("se-space-radiator-1","ethylene-glycol")
end
end
if mods["Krastorio2"] or (mods["bzcarbon2"] and mods["bzgas2"]) then
util.add_unlock("nylon-processing","destructive-distillation")
end
if mods["Krastorio2"] then
util.add_unlock("nylon-processing","bio-nitric-acid")
util.add_unlock("kr-fuel","solid-fuel-coal-tar")
util.replace_ingredient("kr-advanced-lab", "copper-cable", "nylon-machine-parts", 10)
if mods["bzchlorine2"] then
util.add_unlock("organic-chemistry","ethylene-oxide-epoxy")
end
end
if mods["IfNickel-Updated"] then
if data.raw.item["cooling-fan"] then
util.replace_ingredient("cooling-fan", "plastic-bar", "nylon", 3)
end
end
if mods["248k-Redux"] then
util.remove_ingredient("fi_fiberer_recipe", "iron-gear-wheel")
util.add_ingredient("fi_fiberer_recipe", "nylon-machine-parts", 30)
util.remove_ingredient("fi_compound_machine_recipe", "iron-gear-wheel")
util.add_ingredient("fi_compound_machine_recipe", "nylon-machine-parts", 30)
end