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,21 +29,39 @@ if data.raw.item["coke"] then
cat = "advanced-crafting" cat = "advanced-crafting"
end end
data:extend({ if mods.Krastorio2 then
{ data:extend({
type = "recipe", {
name = "phenol", type = "recipe",
category = cat, name = "phenol",
main_product = "phenol", category = cat,
enabled = "false", main_product = "phenol",
ingredients = {{"coal", 4}}, enabled = "false",
energy_required = er, ingredients = {{"coal", 6}, {"wood", 6}},
results = { energy_required = 16,
{type="item", name="phenol", amount = 2}, results = {
{type="item", name="coke", amount = 1}, {type="item", name="phenol", amount = 6},
}, {type="item", name="coke", amount = 3},
} },
}) }
})
else
data:extend({
{
type = "recipe",
name = "phenol",
category = cat,
main_product = "phenol",
enabled = "false",
ingredients = {{"coal", 4}},
energy_required = 6.4,
results = {
{type="item", name="phenol", amount = 2},
{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