k2 phenol

This commit is contained in:
Brevven 2022-07-18 03:14:06 -07:00
parent 45ca9a0799
commit 492dd23a17

View file

@ -20,7 +20,6 @@ data:extend({
}) })
if data.raw.item["coke"] then if data.raw.item["coke"] then
local er = mods.Krastorio2 and 10 or 6.4
local cat local cat
if mods.Krastorio2 then if mods.Krastorio2 then
cat = "smelting" cat = "smelting"
@ -30,6 +29,23 @@ if data.raw.item["coke"] then
cat = "advanced-crafting" cat = "advanced-crafting"
end end
if mods.Krastorio2 then
data:extend({
{
type = "recipe",
name = "phenol",
category = cat,
main_product = "phenol",
enabled = "false",
ingredients = {{"coal", 6}, {"wood", 6}},
energy_required = 16,
results = {
{type="item", name="phenol", amount = 6},
{type="item", name="coke", amount = 3},
},
}
})
else
data:extend({ data:extend({
{ {
type = "recipe", type = "recipe",
@ -38,13 +54,14 @@ if data.raw.item["coke"] then
main_product = "phenol", main_product = "phenol",
enabled = "false", enabled = "false",
ingredients = {{"coal", 4}}, ingredients = {{"coal", 4}},
energy_required = er, energy_required = 6.4,
results = { results = {
{type="item", name="phenol", amount = 2}, {type="item", name="phenol", amount = 2},
{type="item", name="coke", amount = 1}, {type="item", name="coke", amount = 1},
}, },
} }
}) })
end
if mods.Krastorio2 then if mods.Krastorio2 then
util.add_effect("steel-processing", {type="unlock-recipe", recipe="phenol"}) util.add_effect("steel-processing", {type="unlock-recipe", recipe="phenol"})
elseif data.raw.item["foundry"] then elseif data.raw.item["foundry"] then