From ef54b17a4b24f5226b83aab3b9823ba04a3d4e38 Mon Sep 17 00:00:00 2001 From: OZAWA Sakuro <10973+sakuro@users.noreply.github.com> Date: Tue, 18 Jul 2023 10:04:28 +0900 Subject: [PATCH] Use light oil icon from K2 if playing with K2 --- prototypes/phenol.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/prototypes/phenol.lua b/prototypes/phenol.lua index 597000e..6231be5 100644 --- a/prototypes/phenol.lua +++ b/prototypes/phenol.lua @@ -73,6 +73,12 @@ if data.raw.item["coke"] then else util.add_effect("basic-chemistry", {type="unlock-recipe", recipe="phenol"}) end + + if mods.Krastorio2 then + light_oil_icon = { icon = "__Krastorio2Assets__/icons/fluids/light-oil.png", icon_size = 64, icon_mipmaps = 4, scale=0.25, shift={-8,-8}} + else + light_oil_icon = { icon = "__base__/graphics/icons/fluid/light-oil.png", icon_size = 64, icon_mipmaps = 4, scale=0.25, shift={-8,-8}} + end data:extend({ { type = "recipe", @@ -82,7 +88,7 @@ if data.raw.item["coke"] then 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}}, + light_oil_icon, }, ingredients = { {type="fluid", name="light-oil", amount=20}