Fix recipes for K2 and SE
This commit is contained in:
parent
ecfad09c1f
commit
b24ce772cb
1 changed files with 94 additions and 124 deletions
|
|
@ -1,24 +1,15 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--recycling doesnt detect recipe change, doing it manually
|
--recycling doesnt detect recipe change, doing it manually
|
||||||
if mods["space-exploration"] then
|
if mods["space-exploration"] then
|
||||||
|
|
||||||
if mods["Krastorio2"] then
|
if mods["Krastorio2"] then
|
||||||
bobmods.lib.recipe.remove_result("se-recycle-radar", "electronic-circuit")
|
bobmods.lib.recipe.remove_result("se-recycle-radar", "electronic-circuit")
|
||||||
bobmods.lib.recipe.add_result("se-recycle-radar", "kr-automation-core")
|
bobmods.lib.recipe.add_result("se-recycle-radar", "kr-automation-core")
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
bobmods.lib.recipe.remove_result("se-recycle-radar", "electronic-circuit")
|
bobmods.lib.recipe.remove_result("se-recycle-radar", "electronic-circuit")
|
||||||
bobmods.lib.recipe.add_result("se-recycle-radar", { type = "item", name = "basic-circuit-board", amount = 6 })
|
bobmods.lib.recipe.add_result("se-recycle-radar", { type = "item", name = "basic-circuit-board", amount = 6 })
|
||||||
end
|
end
|
||||||
--fix for krastorio/spaceex radar recipe glitch
|
--fix for krastorio/spaceex radar recipe glitch
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--insulated-cable
|
--insulated-cable
|
||||||
if mods["bzsilicon2"] then
|
if mods["bzsilicon2"] then
|
||||||
bobmods.lib.recipe.add_ingredient("optical-fiber", { type = "item", name = "insulated-cable", amount = 1 })
|
bobmods.lib.recipe.add_ingredient("optical-fiber", { type = "item", name = "insulated-cable", amount = 1 })
|
||||||
|
|
@ -29,12 +20,9 @@ end
|
||||||
------------------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if settings.startup["bobmods-recursive-circuitred"].value == true then
|
if settings.startup["bobmods-recursive-circuitred"].value == true then
|
||||||
|
|
||||||
if mods["space-exploration"] and not mods["Krastorio2"] then
|
if mods["space-exploration"] and not mods["Krastorio2"] then
|
||||||
|
|
||||||
bobmods.lib.recipe.set_ingredient("advanced-circuit", { type = "item", name = "electronic-circuit", amount = 2 })
|
bobmods.lib.recipe.set_ingredient("advanced-circuit", { type = "item", name = "electronic-circuit", amount = 2 })
|
||||||
|
|
||||||
bobmods.lib.recipe.set_ingredient("processing-unit", { type = "item", name = "advanced-circuit", amount = 2 })
|
bobmods.lib.recipe.set_ingredient("processing-unit", { type = "item", name = "advanced-circuit", amount = 2 })
|
||||||
|
|
@ -47,14 +35,12 @@ bobmods.lib.recipe.set_ingredient("advanced-processing-unit", {type="item", name
|
||||||
end
|
end
|
||||||
|
|
||||||
if mods["Krastorio2"] and not mods["space-exploration"] then
|
if mods["Krastorio2"] and not mods["space-exploration"] then
|
||||||
|
|
||||||
bobmods.lib.recipe.set_ingredient("advanced-circuit", { type = "item", name = "electronic-circuit", amount = 4 })
|
bobmods.lib.recipe.set_ingredient("advanced-circuit", { type = "item", name = "electronic-circuit", amount = 4 })
|
||||||
bobmods.lib.recipe.set_ingredient("processing-unit", { type = "item", name = "advanced-circuit", amount = 6 })
|
bobmods.lib.recipe.set_ingredient("processing-unit", { type = "item", name = "advanced-circuit", amount = 6 })
|
||||||
bobmods.lib.recipe.set_ingredient("advanced-processing-unit", { type = "item", name = "processing-unit", amount = 1 })
|
bobmods.lib.recipe.set_ingredient("advanced-processing-unit", { type = "item", name = "processing-unit", amount = 1 })
|
||||||
end
|
end
|
||||||
|
|
||||||
if mods["Krastorio2"] and mods["space-exploration"] then
|
if mods["Krastorio2"] and mods["space-exploration"] then
|
||||||
|
|
||||||
bobmods.lib.recipe.set_ingredient("advanced-circuit", { type = "item", name = "electronic-circuit", amount = 4 })
|
bobmods.lib.recipe.set_ingredient("advanced-circuit", { type = "item", name = "electronic-circuit", amount = 4 })
|
||||||
|
|
||||||
bobmods.lib.recipe.set_ingredient("processing-unit", { type = "item", name = "advanced-circuit", amount = 6 })
|
bobmods.lib.recipe.set_ingredient("processing-unit", { type = "item", name = "advanced-circuit", amount = 6 })
|
||||||
|
|
@ -72,10 +58,8 @@ bobmods.lib.recipe.set_ingredient("processing-unit", {type="item", name="electro
|
||||||
bobmods.lib.recipe.set_ingredient("advanced-processing-unit", { type = "item", name = "processing-unit", amount = 1 })
|
bobmods.lib.recipe.set_ingredient("advanced-processing-unit", { type = "item", name = "processing-unit", amount = 1 })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
--change results
|
--change results
|
||||||
if mods["Krastorio2"] then
|
if mods["Krastorio2"] then
|
||||||
--bobmods.lib.recipe.set_result("electronic-circuit", {type="item", name="electronic-circuit", amount=1})
|
|
||||||
bobmods.lib.recipe.set_result("advanced-circuit", { type = "item", name = "advanced-circuit", amount = 2 })
|
bobmods.lib.recipe.set_result("advanced-circuit", { type = "item", name = "advanced-circuit", amount = 2 })
|
||||||
bobmods.lib.recipe.set_result("processing-unit", { type = "item", name = "processing-unit", amount = 2 })
|
bobmods.lib.recipe.set_result("processing-unit", { type = "item", name = "processing-unit", amount = 2 })
|
||||||
bobmods.lib.recipe.set_result("se-processing-unit-holmium", { type = "item", name = "processing-unit", amount = 2 })
|
bobmods.lib.recipe.set_result("se-processing-unit-holmium", { type = "item", name = "processing-unit", amount = 2 })
|
||||||
|
|
@ -84,7 +68,6 @@ end
|
||||||
|
|
||||||
--if not then make sure to remove
|
--if not then make sure to remove
|
||||||
else
|
else
|
||||||
|
|
||||||
bobmods.lib.recipe.remove_ingredient("advanced-circuit", "electronic-circuit")
|
bobmods.lib.recipe.remove_ingredient("advanced-circuit", "electronic-circuit")
|
||||||
|
|
||||||
bobmods.lib.recipe.remove_ingredient("processing-unit", "advanced-circuit")
|
bobmods.lib.recipe.remove_ingredient("processing-unit", "advanced-circuit")
|
||||||
|
|
@ -97,12 +80,16 @@ bobmods.lib.recipe.remove_ingredient("se-processing-unit-holmium", "electronic-c
|
||||||
bobmods.lib.recipe.set_result("advanced-circuit", { type = "item", name = "advanced-circuit", amount = 1 })
|
bobmods.lib.recipe.set_result("advanced-circuit", { type = "item", name = "advanced-circuit", amount = 1 })
|
||||||
bobmods.lib.recipe.set_result("processing-unit", { type = "item", name = "processing-unit", amount = 1 })
|
bobmods.lib.recipe.set_result("processing-unit", { type = "item", name = "processing-unit", amount = 1 })
|
||||||
|
|
||||||
if mods["space-exploration"] and not mods["Krastorio2"] then bobmods.lib.recipe.set_result("se-processing-unit-holmium", {type="item", name="processing-unit", amount=2}) end
|
if mods["space-exploration"] and not mods["Krastorio2"] then
|
||||||
|
bobmods.lib.recipe.set_result("se-processing-unit-holmium", { type = "item", name = "processing-unit", amount = 2 })
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
if mods["Krastorio2"] then
|
if mods["Krastorio2"] then
|
||||||
|
data.raw.recipe["electronic-circuit"].ingredients = {
|
||||||
|
{ type = "item", name = "basic-circuit-board", amount = 1 },
|
||||||
|
{ type = "item", name = "basic-electronic-components", amount = 5 }
|
||||||
|
}
|
||||||
bobmods.lib.recipe.add_ingredient("advanced-circuit", { type = "item", name = "kr-electronic-components", amount = 2 })
|
bobmods.lib.recipe.add_ingredient("advanced-circuit", { type = "item", name = "kr-electronic-components", amount = 2 })
|
||||||
bobmods.lib.recipe.add_ingredient("advanced-processing-unit", { type = "item", name = "kr-rare-metals", amount = 5 })
|
bobmods.lib.recipe.add_ingredient("advanced-processing-unit", { type = "item", name = "kr-rare-metals", amount = 5 })
|
||||||
bobmods.lib.recipe.add_ingredient("advanced-processing-unit", { type = "item", name = "processing-electronics", amount = 2 })
|
bobmods.lib.recipe.add_ingredient("advanced-processing-unit", { type = "item", name = "processing-electronics", amount = 2 })
|
||||||
|
|
@ -112,63 +99,46 @@ bobmods.lib.recipe.add_ingredient("kr-advanced-assembling-machine", {"advanced-p
|
||||||
bobmods.lib.recipe.add_ingredient("kr-advanced-furnace", { "advanced-processing-unit", amount = 5 })
|
bobmods.lib.recipe.add_ingredient("kr-advanced-furnace", { "advanced-processing-unit", amount = 5 })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
--add circuits to recipes
|
|
||||||
if mods["space-exploration"] then
|
if mods["space-exploration"] then
|
||||||
|
data.raw.recipe["electronic-circuit-wood"].hidden = true
|
||||||
|
bobmods.lib.recipe.add_ingredient("electronic-circuit", { type = "item", name = "stone-tablet", amount = 1 })
|
||||||
|
|
||||||
|
--add circuits to recipes
|
||||||
bobmods.lib.recipe.add_ingredient("se-processing-unit-holmium", { type = "item", name = "basic-electronic-components", amount = 1 })
|
bobmods.lib.recipe.add_ingredient("se-processing-unit-holmium", { type = "item", name = "basic-electronic-components", amount = 1 })
|
||||||
bobmods.lib.recipe.add_ingredient("se-processing-unit-holmium", { type = "item", name = "BOBMD-electronic-components", amount = 2 })
|
bobmods.lib.recipe.add_ingredient("se-processing-unit-holmium", { type = "item", name = "BOBMD-electronic-components", amount = 2 })
|
||||||
bobmods.lib.recipe.add_ingredient("se-processing-unit-holmium", { type = "item", name = "intergrated-electronics", amount = 1 })
|
bobmods.lib.recipe.add_ingredient("se-processing-unit-holmium", { type = "item", name = "intergrated-electronics", amount = 1 })
|
||||||
bobmods.lib.recipe.add_ingredient("se-processing-unit-holmium", { type = "item", name = "superior-circuit-board", amount = 1 })
|
bobmods.lib.recipe.add_ingredient("se-processing-unit-holmium", { type = "item", name = "superior-circuit-board", amount = 1 })
|
||||||
bobmods.lib.recipe.add_ingredient("processing-unit", { type = "fluid", name = "sulfuric-acid", amount = 4 })
|
bobmods.lib.recipe.add_ingredient("processing-unit", { type = "fluid", name = "sulfuric-acid", amount = 4 })
|
||||||
|
|
||||||
|
|
||||||
bobmods.lib.recipe.add_ingredient("se-space-assembling-machine", { "advanced-processing-unit", amount = 2 })
|
bobmods.lib.recipe.add_ingredient("se-space-assembling-machine", { "advanced-processing-unit", amount = 2 })
|
||||||
bobmods.lib.recipe.replace_ingredient("se-spaceship-console", "processing-unit", "advanced-processing-unit")
|
bobmods.lib.recipe.replace_ingredient("se-spaceship-console", "processing-unit", "advanced-processing-unit")
|
||||||
bobmods.lib.recipe.add_ingredient("se-space-supercomputer-2", { "advanced-processing-unit", amount = 150 })
|
bobmods.lib.recipe.add_ingredient("se-space-supercomputer-2", { "advanced-processing-unit", amount = 150 })
|
||||||
bobmods.lib.recipe.replace_ingredient("se-space-supercomputer-3", "processing-unit", "advanced-processing-unit")
|
bobmods.lib.recipe.replace_ingredient("se-space-supercomputer-3", "processing-unit", "advanced-processing-unit")
|
||||||
|
|
||||||
|
--Force circuits back to my own tab
|
||||||
--SE 0.6 it no longer makes sense
|
if data.raw.item["electronic-circuit"] then
|
||||||
--[[
|
data.raw.item["electronic-circuit"].subgroup = "bob-electronic-boards"
|
||||||
bobmods.lib.recipe.replace_ingredient("speed-module-6", "processing-unit", "advanced-processing-unit")
|
end
|
||||||
bobmods.lib.recipe.replace_ingredient("speed-module-7", "processing-unit", "advanced-processing-unit")
|
if data.raw.item["advanced-circuit"] then
|
||||||
bobmods.lib.recipe.replace_ingredient("productivity-module-6", "processing-unit", "advanced-processing-unit")
|
data.raw.item["advanced-circuit"].subgroup = "bob-electronic-boards"
|
||||||
bobmods.lib.recipe.replace_ingredient("productivity-module-7", "processing-unit", "advanced-processing-unit")
|
end
|
||||||
bobmods.lib.recipe.replace_ingredient("effectivity-module-6", "processing-unit", "advanced-processing-unit")
|
if data.raw.item["processing-unit"] then
|
||||||
bobmods.lib.recipe.replace_ingredient("effectivity-module-7", "processing-unit", "advanced-processing-unit")
|
data.raw.item["processing-unit"].subgroup = "bob-electronic-boards"
|
||||||
]]
|
end
|
||||||
|
if data.raw.item["se-processing-unit-holmium"] then
|
||||||
|
data.raw.item["se-processing-unit-holmium"].subgroup = "bob-electronic-boards"
|
||||||
--SE 0.6 force circuits back to my own tab
|
end
|
||||||
|
|
||||||
if data.raw.item["electronic-circuit"] then data.raw.item["electronic-circuit"].subgroup = "bob-electronic-boards" end
|
|
||||||
if data.raw.item["advanced-circuit"] then data.raw.item["advanced-circuit"].subgroup = "bob-electronic-boards" end
|
|
||||||
if data.raw.item["processing-unit"] then data.raw.item["processing-unit"].subgroup = "bob-electronic-boards" end
|
|
||||||
if data.raw.item["se-processing-unit-holmium"] then data.raw.item["se-processing-unit-holmium"].subgroup = "bob-electronic-boards" end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--progression fix for krastorio:
|
--progression fix for krastorio:
|
||||||
if data.raw.fluid["kr-hydrogen-chloride"] then
|
if data.raw.fluid["kr-hydrogen-chloride"] then
|
||||||
|
|
||||||
bobmods.lib.tech.add_recipe_unlock("kr-fluids-chemistry", "kr-hydrogen-chloride")
|
bobmods.lib.tech.add_recipe_unlock("kr-fluids-chemistry", "kr-hydrogen-chloride")
|
||||||
bobmods.lib.tech.remove_recipe_unlock("kr-advanced-chemistry", "kr-hydrogen-chloride")
|
bobmods.lib.tech.remove_recipe_unlock("kr-advanced-chemistry", "kr-hydrogen-chloride")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if data.raw.item["electronic-circuit"] then
|
if data.raw.item["electronic-circuit"] then
|
||||||
bobmods.lib.recipe.set_ingredients("electronic-circuit", {{type="item", name="basic-circuit-board", 1}, {"basic-electronic-components", amount=5}})
|
--bobmods.lib.recipe.set_ingredients("electronic-circuit", {{type="item", name="basic-circuit-board", 1}, {"basic-electronic-components", amount=5}})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue