forked from cacklingfiend/bzgas2
Fix early game technologies with Krastorio
This commit is contained in:
parent
1b5895b421
commit
6c0876d0c8
3 changed files with 12 additions and 5 deletions
|
|
@ -9,9 +9,9 @@ util.set_product_amount("se-core-fragment-omni", "gas", 24)
|
|||
|
||||
-- Fix basic chemical plant fuels for K2
|
||||
if mods.Krastorio2 and
|
||||
data.raw["assembling-machine"]["basic-chemical-plant"] and
|
||||
data.raw["assembling-machine"]["basic-chemical-plant"].energy_source and
|
||||
data.raw["assembling-machine"]["basic-chemical-plant"].energy_source.fuel_categories then
|
||||
data.raw["assembling-machine"]["basic-chemical-plant"] and
|
||||
data.raw["assembling-machine"]["basic-chemical-plant"].energy_source and
|
||||
data.raw["assembling-machine"]["basic-chemical-plant"].energy_source.fuel_categories then
|
||||
table.insert(data.raw["assembling-machine"]["basic-chemical-plant"].energy_source.fuel_categories , "kr-vehicle-fuel")
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
local util = require("data-util");
|
||||
|
||||
local prereq = {"basic-chemistry"}
|
||||
if mods["bzfoundry2"] then
|
||||
if mods["Krastorio2"] then
|
||||
table.insert(prereq, "steel-processing")
|
||||
elseif mods["bzfoundry2"] then
|
||||
table.insert(prereq, "foundry")
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,11 @@ local util = require("data-util");
|
|||
-- }
|
||||
-- })
|
||||
|
||||
local prereq = {"gas-extraction"}
|
||||
if mods["Krastorio2"] then
|
||||
table.insert(prereq, "automation-science-pack")
|
||||
end
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "fluid",
|
||||
|
|
@ -40,7 +45,7 @@ data:extend({
|
|||
name = "basic-chemistry",
|
||||
icon = "__bzgas2__/graphics/technology/formaldehyde.png",
|
||||
icon_size = 256,
|
||||
prerequisites = {"gas-extraction"},
|
||||
prerequisites = prereq,
|
||||
effects = {
|
||||
{type = "unlock-recipe", recipe = "basic-chemical-plant"},
|
||||
{type = "unlock-recipe", recipe = "formaldehyde"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue