forked from cacklingfiend/bzgas2
Fix early game technologies with AAI Industry
This commit is contained in:
parent
6c0876d0c8
commit
46e9a0ce4e
4 changed files with 8 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ util.add_ingredient("electronic-circuit", "bakelite", amt)
|
||||||
util.set_icons("electronic-circuit", nil)
|
util.set_icons("electronic-circuit", nil)
|
||||||
|
|
||||||
|
|
||||||
if util.me.handcraft() then
|
if util.me.handcraft() and not mods["aai-industry"] then
|
||||||
data:extend({{ type = "recipe-category", name = "handcraft-only" }})
|
data:extend({{ type = "recipe-category", name = "handcraft-only" }})
|
||||||
for i, character in pairs(data.raw.character) do
|
for i, character in pairs(data.raw.character) do
|
||||||
if character and character.crafting_categories then
|
if character and character.crafting_categories then
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,10 @@ if mods.Krastorio2 and
|
||||||
table.insert(data.raw["assembling-machine"]["basic-chemical-plant"].energy_source.fuel_categories , "kr-vehicle-fuel")
|
table.insert(data.raw["assembling-machine"]["basic-chemical-plant"].energy_source.fuel_categories , "kr-vehicle-fuel")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if mods["aai-industry"] and not mods["Krastorio2"] then
|
||||||
|
util.remove_prerequisite("basic-chemistry", "basic-fluid-handling")
|
||||||
|
end
|
||||||
|
|
||||||
-- Vanilla burner phase tweaks -- green circuits after electronics
|
-- Vanilla burner phase tweaks -- green circuits after electronics
|
||||||
-- Electronic circuit recipe set below in compatibility script
|
-- Electronic circuit recipe set below in compatibility script
|
||||||
if not mods.Krastorio2 and not mods["aai-industry"] and not mods.bzaluminum2 and not mods["bzcarbon2"] then
|
if not mods.Krastorio2 and not mods["aai-industry"] and not mods.bzaluminum2 and not mods["bzcarbon2"] then
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@ if mods["Krastorio2"] then
|
||||||
table.insert(prereq, "steel-processing")
|
table.insert(prereq, "steel-processing")
|
||||||
elseif mods["bzfoundry2"] then
|
elseif mods["bzfoundry2"] then
|
||||||
table.insert(prereq, "foundry")
|
table.insert(prereq, "foundry")
|
||||||
|
elseif mods["aai-industry"] then
|
||||||
|
table.insert(prereq, "automation")
|
||||||
end
|
end
|
||||||
|
|
||||||
data:extend({
|
data:extend({
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ if mods.Krastorio2 then
|
||||||
ge_prereq = {"kr-stone-processing"}
|
ge_prereq = {"kr-stone-processing"}
|
||||||
elseif mods["aai-industry"] then
|
elseif mods["aai-industry"] then
|
||||||
table.insert(ge_ingredients, {type="item", name="sand", amount=10})
|
table.insert(ge_ingredients, {type="item", name="sand", amount=10})
|
||||||
ge_prereq = {"sand-processing"}
|
ge_prereq = {"sand-processing", "basic-fluid-handling"}
|
||||||
elseif data.raw.item["silica"] and data.raw.technology["silica-processing"] then
|
elseif data.raw.item["silica"] and data.raw.technology["silica-processing"] then
|
||||||
table.insert(ge_ingredients, {type="item", name="silica", amount=20})
|
table.insert(ge_ingredients, {type="item", name="silica", amount=20})
|
||||||
ge_prereq = {"silica-processing"}
|
ge_prereq = {"silica-processing"}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue