From ff38efcef4ec879f997dd98fe070df5be5f7f143 Mon Sep 17 00:00:00 2001 From: Brevven Date: Mon, 18 Jul 2022 03:11:04 -0700 Subject: [PATCH] reforming recipe k2 --- data.lua | 3 ++- prototypes/k2-recipe.lua | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 prototypes/k2-recipe.lua diff --git a/data.lua b/data.lua index 225370e..5613449 100644 --- a/data.lua +++ b/data.lua @@ -4,10 +4,11 @@ require("prototypes/phenol") require("prototypes/formaldehyde") require("prototypes/bakelite") require("prototypes/basic-chemical-plant") +require("prototypes/k2-recipe") local util = require("data-util"); -if util.me.use_boiler() then +if util.me.use_boiler() and not data.raw.boiler["gas-boiler"] then require("gas-boiler/data") end diff --git a/prototypes/k2-recipe.lua b/prototypes/k2-recipe.lua new file mode 100644 index 0000000..07760d4 --- /dev/null +++ b/prototypes/k2-recipe.lua @@ -0,0 +1,25 @@ +local util = require("data-util"); +if mods.Krastorio2 then + data:extend({ + { + type = "recipe", + name = "gas-reforming", + category = "chemistry", + main_product = "hydrogen", + icons = { + {icon = kr_fluids_icons_path.."hydrogen.png", icon_size = 64, icon_mipmaps = 4}, + {icon = "__bzgas__/graphics/icons/gas.png", icon_size = 128, scale = 0.125, shift={-8,-8}}, + }, + enabled = "false", + ingredients = { + {type="fluid", name="gas", amount=25}, + {type="fluid", name="water", amount=50}, + }, + energy_required = 3, + results = { + {type="fluid", name="hydrogen", amount = 100}, + }, + }, + }) + util.add_effect("kr-advanced-chemistry", {type="unlock-recipe", recipe="gas-reforming"}) +end