From b28f7d3c4b791657df86b64c70779bb5a7f519f7 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sun, 24 Jul 2022 18:35:16 -0700 Subject: [PATCH] phenol from oil --- changelog.txt | 9 +++++++++ info.json | 2 +- locale/en/gas.cfg | 2 +- prototypes/phenol.lua | 22 +++++++++++++++++++++- 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 1b0e874..551981d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,13 @@ --------------------------------------------------------------------------------------------------- +Version: 0.0.7 +Date: 2022-07-25 + Changes: + - Add a new recipe for phenol (when enabled) from light oil, to help with late-game production. + - K2, without AAI: fix green circuit recipe, actually simplify this one. + Fixes: + - Gas Boiler: input arrow for gas input + - Minor typo fixes +--------------------------------------------------------------------------------------------------- Version: 0.0.6 Date: 2022-07-23 Features: diff --git a/info.json b/info.json index 7228499..e50c13f 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzgas", - "version": "0.0.6", + "version": "0.0.7", "factorio_version": "1.1", "title": "Natural Gas", "author": "Brevven", diff --git a/locale/en/gas.cfg b/locale/en/gas.cfg index b441bfb..2e65617 100644 --- a/locale/en/gas.cfg +++ b/locale/en/gas.cfg @@ -50,4 +50,4 @@ bzgas-boiler=Natural gas mod currnelty can incorporate ElAdamo's public domain f [string-mod-setting] bzgas-more-intermediates-no=No -bzgas-more-intermediates-phenol=Yes: Phenol from coal +bzgas-more-intermediates-phenol=Yes: Phenol from coal or oil diff --git a/prototypes/phenol.lua b/prototypes/phenol.lua index d301cc8..dab8daa 100644 --- a/prototypes/phenol.lua +++ b/prototypes/phenol.lua @@ -69,6 +69,26 @@ if data.raw.item["coke"] then else util.add_effect("automation", {type="unlock-recipe", recipe="phenol"}) end + data:extend({ + { + type = "recipe", + name = "phenol-from-oil", + category = "chemistry", + enabled = "false", + icons = { + {icon = "__bzgas__/graphics/icons/phenol.png", icon_size = 128}, + {icon = "__base__/graphics/icons/fluid/light-oil.png", icon_size = 64, icon_mipmaps = 4, scale=0.25, shift={-8,-8}}, + }, + ingredients = { + {type="fluid", name="light-oil", amount=20} + }, + energy_required = 15, + results = { + {type="item", name="phenol", amount=3}, + }, + } + }) + util.add_unlock("advanced-oil-processing", "phenol-from-oil") else data:extend({ { @@ -80,7 +100,7 @@ else energy_required = 1, ingredients = {{"coal", 1}}, results = { - {type="item", name="phenol", amount = 1}, + {type="item", name="phenol", amount=1}, }, } })