From 314c1b798a9c9c13b2e6c86873327e5aabdf54ca Mon Sep 17 00:00:00 2001 From: protocol-1903 <67478786+protocol-1903@users.noreply.github.com> Date: Wed, 30 Oct 2024 21:01:29 -0700 Subject: [PATCH] Remove PyBlock temp techs (#57) * remove pyblock temp techs * update changelog and remove temp tech function --- changelog.txt | 5 +++++ data-final-fixes.lua | 39 --------------------------------------- info.json | 2 +- 3 files changed, 6 insertions(+), 40 deletions(-) diff --git a/changelog.txt b/changelog.txt index 9ecc4a0..e638586 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 3.0.9 +Date: 2024-10-30 + Changes: + - Removed temporary technologies from PyBlock +--------------------------------------------------------------------------------------------------- Version: 3.0.8 Date: 2024-10-29 Changes: diff --git a/data-final-fixes.lua b/data-final-fixes.lua index f040f85..9023c4f 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -172,45 +172,6 @@ for category_name, proto in pairs(data.raw["resource-category"]) do end -- End resource category locale builder -local function create_tmp_tech(recipe, original_tech, add_dependency) - local new_tech = TECHNOLOGY { - type = "technology", - name = "tmp-" .. recipe .. "-tech", - icon = "__pypostprocessing__/graphics/placeholder.png", - icon_size = 128, - order = "c-a", - prerequisites = {}, - effects = { - {type = "unlock-recipe", recipe = recipe} - }, - unit = { - count = 30, - ingredients = { - {"automation-science-pack", 1} - }, - time = 30 - } - } - - recipe.enabled = false - - if original_tech then - recipe:remove_unlock(original_tech) - - if add_dependency then - new_tech.dependencies = {original_tech} - end - end - - return new_tech -end - -if mods["PyBlock"] then - create_tmp_tech("fake-bioreserve-ore") - --aluminium - create_tmp_tech("borax-mine", "glass") -end - if mods.pycoalprocessing and not mods["extended-descriptions"] then for _, recipe in pairs(data.raw.recipe) do if recipe.allow_productivity then diff --git a/info.json b/info.json index b71f5f9..8ade792 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "pypostprocessing", - "version": "3.0.8", + "version": "3.0.9", "factorio_version": "2.0", "title": "Pyanodons Post-processing", "author": "Pyanodon, Shadowglass",