From 492dd23a170ad926f89e4a1d4769c7bf92350b04 Mon Sep 17 00:00:00 2001 From: Brevven Date: Mon, 18 Jul 2022 03:14:06 -0700 Subject: [PATCH] k2 phenol --- prototypes/phenol.lua | 49 +++++++++++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 16 deletions(-) diff --git a/prototypes/phenol.lua b/prototypes/phenol.lua index 2a2d079..d301cc8 100644 --- a/prototypes/phenol.lua +++ b/prototypes/phenol.lua @@ -20,7 +20,6 @@ data:extend({ }) if data.raw.item["coke"] then - local er = mods.Krastorio2 and 10 or 6.4 local cat if mods.Krastorio2 then cat = "smelting" @@ -30,21 +29,39 @@ if data.raw.item["coke"] then cat = "advanced-crafting" end - data:extend({ - { - type = "recipe", - name = "phenol", - category = cat, - main_product = "phenol", - enabled = "false", - ingredients = {{"coal", 4}}, - energy_required = er, - results = { - {type="item", name="phenol", amount = 2}, - {type="item", name="coke", amount = 1}, - }, - } - }) + 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({ + { + 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 util.add_effect("steel-processing", {type="unlock-recipe", recipe="phenol"}) elseif data.raw.item["foundry"] then