From b6f5796273b72a0a6b3d5acc52e7eac0146867c4 Mon Sep 17 00:00:00 2001 From: Brevven Date: Wed, 3 Aug 2022 16:32:52 -0700 Subject: [PATCH] fix fuel categories k2 aai --- changelog.txt | 5 +++++ data-final-fixes.lua | 7 +++++++ info.json | 2 +- prototypes/basic-chemical-plant.lua | 3 ++- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index a462ff5..e7045d8 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.0.14 +Date: 2022-08-04 + Fixes: + - AAI: Can use processed fuel for basic chem plant with Krastorio 2 +--------------------------------------------------------------------------------------------------- Version: 0.0.13 Date: 2022-08-02 Features: diff --git a/data-final-fixes.lua b/data-final-fixes.lua index 30c9504..4cfbcd3 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -8,6 +8,13 @@ local util = require("data-util"); -- core mining balancing util.add_to_product("se-core-fragment-omni", "gas", -56) +-- Fix basic chemical plant fuels for K2 +if mods.Krastorio2 and +data.raw["assembling-machine"]["basic-chemical-plant"] and +data.raw["assembling-machine"]["basic-chemical-plant"].energy_source and +data.raw["assembling-machine"]["basic-chemical-plant"].energy_source.fuel_categories then + table.insert(data.raw["assembling-machine"]["basic-chemical-plant"].energy_source.fuel_categories , "vehicle-fuel") +end -- Vanilla burner phase tweaks -- green circuits after electronics -- Electronic circuit recipe set below in compatibility script diff --git a/info.json b/info.json index e3dee30..90f6e6b 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzgas", - "version": "0.0.13", + "version": "0.0.14", "factorio_version": "1.1", "title": "Natural Gas", "author": "Brevven", diff --git a/prototypes/basic-chemical-plant.lua b/prototypes/basic-chemical-plant.lua index 5223da1..05eacc9 100644 --- a/prototypes/basic-chemical-plant.lua +++ b/prototypes/basic-chemical-plant.lua @@ -54,11 +54,12 @@ plant_e.animation.east.layers[1].hr_version.filename="__bzgas__/graphics/entity/ plant_e.animation.west.layers[1].filename="__bzgas__/graphics/entity/chemical-plant.png" plant_e.animation.west.layers[1].hr_version.filename="__bzgas__/graphics/entity/hr-chemical-plant.png" plant_e.next_upgrade="chemical-plant" + plant_e.energy_source = { type = "burner", fuel_inventory_size = 1, effectivity = 1, - fuel_categories = mods["aai-industry"] and {"chemical", "processed-chemical"} or {"chemical"}, + fuel_categories = {"chemical"}, smoke = { { name = "smoke",