Mod compatibility fixes
This commit is contained in:
parent
f930a5412d
commit
fb1aeefc95
2 changed files with 15 additions and 15 deletions
|
@ -129,7 +129,7 @@ function util.se_matter(params)
|
||||||
{"se-astronomic-science-pack-4", 1},
|
{"se-astronomic-science-pack-4", 1},
|
||||||
{"se-energy-science-pack-4", 1},
|
{"se-energy-science-pack-4", 1},
|
||||||
{"se-material-science-pack-4", 1},
|
{"se-material-science-pack-4", 1},
|
||||||
{"matter-tech-card", 1},
|
{"kr-matter-tech-card", 1},
|
||||||
{"se-deep-space-science-pack-1", 1},
|
{"se-deep-space-science-pack-1", 1},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -15,12 +15,12 @@ else
|
||||||
}})
|
}})
|
||||||
end
|
end
|
||||||
|
|
||||||
local ketone_alcohol_oil_ingredients = {{type="item", name="coal", amount = 5}, (data.raw.fluid["hydrogen"] and { type = "fluid", name = "hydrogen", amount = 10 }) or ({ type = "fluid", name = "water", amount = 10 }), (data.raw.item["cobalt-plate"] and {type="item", name="cobalt-plate", amount = 1}) or {type="item", name="iron-plate", amount=1}}
|
local ketone_alcohol_oil_ingredients = {{type="item", name="coal", amount = 5}, (data.raw.fluid["kr-hydrogen"] and { type = "fluid", name = "kr-hydrogen", amount = 10 }) or ({ type = "fluid", name = "water", amount = 10 }), (data.raw.item["cobalt-plate"] and {type="item", name="cobalt-plate", amount = 1}) or {type="item", name="iron-plate", amount=1}}
|
||||||
|
|
||||||
if mods["bzgas"] then
|
if mods["bzgas"] then
|
||||||
ketone_alcohol_oil_ingredients = {{type="item", name="phenol", amount = 5}, (data.raw.item["cobalt-plate"] and {type="item", name="cobalt-plate", amount = 1}) or {type="item", name="iron-plate", amount=1}}
|
ketone_alcohol_oil_ingredients = {{type="item", name="phenol", amount = 5}, (data.raw.item["cobalt-plate"] and {type="item", name="cobalt-plate", amount = 1}) or {type="item", name="iron-plate", amount=1}}
|
||||||
if data.raw.fluid["hydrogen"] then
|
if data.raw.fluid["kr-hydrogen"] then
|
||||||
table.insert(ketone_alcohol_oil_ingredients, { type = "fluid", name = "hydrogen", amount = 10 })
|
table.insert(ketone_alcohol_oil_ingredients, { type = "fluid", name = "kr-hydrogen", amount = 10 })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -144,12 +144,12 @@ data:extend({
|
||||||
order = "n",
|
order = "n",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 30,
|
energy_required = 30,
|
||||||
ingredients = {(data.raw.fluid["biomethanol"] and { type = "fluid", name = "biomethanol", amount = 50 }) or { type = "fluid", name = "light-oil", amount = 50 }, (data.raw.fluid["chlorine"] and { type = "fluid", name = "chlorine", amount = 50 }) or { type = "fluid", name = "water", amount = 50 }},
|
ingredients = {(data.raw.fluid["biomethanol"] and { type = "fluid", name = "biomethanol", amount = 50 }) or { type = "fluid", name = "light-oil", amount = 50 }, (data.raw.fluid["kr-chlorine"] and { type = "fluid", name = "kr-chlorine", amount = 50 }) or (data.raw.fluid["chlorine"] and { type = "fluid", name = "chlorine", amount = 50 }) or { type = "fluid", name = "water", amount = 50 }},
|
||||||
results = {{ type = "fluid", name = "ethylene-oxide", amount = 50 }, { type = "fluid", name = "acetic-acid", amount = 50 }},
|
results = {{ type = "fluid", name = "ethylene-oxide", amount = 50 }, { type = "fluid", name = "acetic-acid", amount = 50 }},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
local vinyl_acetate_ingredients = {{ type = "fluid", name = "acetic-acid", amount = 25 },(data.raw.fluid["oxygen"] and { type = "fluid", name = "oxygen", amount = 25 }) or { type = "fluid", name = "water", amount = 25 }}
|
local vinyl_acetate_ingredients = {{ type = "fluid", name = "acetic-acid", amount = 25 },(data.raw.fluid["kr-oxygen"] and { type = "fluid", name = "kr-oxygen", amount = 25 }) or { type = "fluid", name = "water", amount = 25 }}
|
||||||
if data.raw.item["palladium-plate"] then
|
if data.raw.item["palladium-plate"] then
|
||||||
table.insert(vinyl_acetate_ingredients, {type="item", name="palladium-plate", amount=1})
|
table.insert(vinyl_acetate_ingredients, {type="item", name="palladium-plate", amount=1})
|
||||||
end
|
end
|
||||||
|
@ -211,7 +211,7 @@ data:extend({
|
||||||
order = "e",
|
order = "e",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 4,
|
energy_required = 4,
|
||||||
ingredients = {{ type = "fluid", name = "ethylene-oxide", amount = 10 }, (data.raw.fluid["ammonia"] and { type = "fluid", name = "ammonia", amount = 10 }) or { type = "fluid", name = "water", amount = 10 }},
|
ingredients = {{ type = "fluid", name = "ethylene-oxide", amount = 10 }, (data.raw.fluid["kr-ammonia"] and { type = "fluid", name = "kr-ammonia", amount = 10 }) or { type = "fluid", name = "water", amount = 10 }},
|
||||||
results = {{ type = "fluid", name = "ethanolamine", amount = 20 }},
|
results = {{ type = "fluid", name = "ethanolamine", amount = 20 }},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -273,12 +273,12 @@ if data.raw.fluid["kr-nitric-acid"] then
|
||||||
end
|
end
|
||||||
local adipic_acid_results = {{type="item", name="adipic-acid", amount=5}}
|
local adipic_acid_results = {{type="item", name="adipic-acid", amount=5}}
|
||||||
if data.raw.fluid["depleted-acid"] then
|
if data.raw.fluid["depleted-acid"] then
|
||||||
table.insert({ type = "fluid", name = "depleted-acid", amount = 10 })
|
table.insert(adipic_acid_results, { type = "fluid", name = "depleted-acid", amount = 10 })
|
||||||
end
|
end
|
||||||
|
|
||||||
local hexamethylenediamine_ingredients = {{ type = "fluid", name = "petroleum-gas", amount = 10 }, (data.raw.item["cobalt-plate"] and {type="item", name="cobalt-plate", amount = 1}) or {type="item", name="iron-plate", amount=1}}
|
local hexamethylenediamine_ingredients = {{ type = "fluid", name = "petroleum-gas", amount = 10 }, (data.raw.item["cobalt-plate"] and {type="item", name="cobalt-plate", amount = 1}) or {type="item", name="iron-plate", amount=1}}
|
||||||
if data.raw.fluid["ammonia"] then
|
if data.raw.fluid["kr-ammonia"] then
|
||||||
table.insert(hexamethylenediamine_ingredients, { type = "fluid", name = "ammonia", amount = 10 })
|
table.insert(hexamethylenediamine_ingredients, { type = "fluid", name = "kr-ammonia", amount = 10 })
|
||||||
end
|
end
|
||||||
local hexamethylenediamine_results = {{ type = "fluid", name = "hexamethylenediamine", amount = 10 }, (data.raw.item["cobalt-plate"] and {type = "item", name ="cobalt-plate", amount=1, probability=0.4}) or {type = "item", name ="iron-plate", amount=1, probability=0.4}}
|
local hexamethylenediamine_results = {{ type = "fluid", name = "hexamethylenediamine", amount = 10 }, (data.raw.item["cobalt-plate"] and {type = "item", name ="cobalt-plate", amount=1, probability=0.4}) or {type = "item", name ="iron-plate", amount=1, probability=0.4}}
|
||||||
if data.raw.fluid["chemical-waste"] then
|
if data.raw.fluid["chemical-waste"] then
|
||||||
|
@ -290,8 +290,8 @@ if data.raw.item["phenol"] then
|
||||||
table.insert(destructive_distillation_ingredients, {type="item", name="phenol", amount=5})
|
table.insert(destructive_distillation_ingredients, {type="item", name="phenol", amount=5})
|
||||||
end
|
end
|
||||||
local destructive_distillation_results = {{ type = "fluid", name = "coal-tar", amount = 20 }}
|
local destructive_distillation_results = {{ type = "fluid", name = "coal-tar", amount = 20 }}
|
||||||
if data.raw.fluid["ammonia"] then
|
if data.raw.fluid["kr-ammonia"] then
|
||||||
table.insert(destructive_distillation_results, { type = "fluid", name = "ammonia", amount = 10 })
|
table.insert(destructive_distillation_results, { type = "fluid", name = "kr-ammonia", amount = 10 })
|
||||||
end
|
end
|
||||||
if data.raw.item["kr-coke"] then
|
if data.raw.item["kr-coke"] then
|
||||||
table.insert(destructive_distillation_results, {type="item", name="kr-coke", amount=7})
|
table.insert(destructive_distillation_results, {type="item", name="kr-coke", amount=7})
|
||||||
|
@ -357,7 +357,7 @@ data:extend({
|
||||||
name = "destructive-distillation",
|
name = "destructive-distillation",
|
||||||
icon = "__Nylon2__/graphics/icons/destructive-distillation.png",
|
icon = "__Nylon2__/graphics/icons/destructive-distillation.png",
|
||||||
icon_size = 64,
|
icon_size = 64,
|
||||||
main_porduct = "ammonia",
|
main_porduct = "kr-ammonia",
|
||||||
category = "chemistry",
|
category = "chemistry",
|
||||||
subgroup = "chemical",
|
subgroup = "chemical",
|
||||||
order = "a",
|
order = "a",
|
||||||
|
@ -370,7 +370,7 @@ data:extend({
|
||||||
util.add_productivity("destructive-distillation")
|
util.add_productivity("destructive-distillation")
|
||||||
|
|
||||||
if mods["Krastorio2"] then
|
if mods["Krastorio2"] then
|
||||||
local bio_nitric_acid_ingredients = {{ type = "fluid", name = "coal-tar", amount = 10 }, { type = "fluid", name = "water", amount = 10 }, {type="item", name="wood", 10}}
|
local bio_nitric_acid_ingredients = {{ type = "fluid", name = "coal-tar", amount = 10 }, { type = "fluid", name = "water", amount = 10 }, {type="item", name="wood", amount = 10}}
|
||||||
if data.raw.item["limestone"] then
|
if data.raw.item["limestone"] then
|
||||||
table.insert(bio_nitric_acid_ingredients, {type="item", name="limestone", amount=4})
|
table.insert(bio_nitric_acid_ingredients, {type="item", name="limestone", amount=4})
|
||||||
end
|
end
|
||||||
|
@ -475,7 +475,7 @@ if mods["bzcarbon"] and mods["Krastorio2"] then
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "coke-powder",
|
name = "coke-powder",
|
||||||
category = "crushing",
|
category = "kr-crushing",
|
||||||
order = "l",
|
order = "l",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 4,
|
energy_required = 4,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue