Skip to content

Commit

Permalink
Remove PyBlock temp techs (#57)
Browse files Browse the repository at this point in the history
* remove pyblock temp techs

* update changelog and remove temp tech function
  • Loading branch information
protocol-1903 authored Oct 31, 2024
1 parent 2baec21 commit 314c1b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 40 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
39 changes: 0 additions & 39 deletions data-final-fixes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 314c1b7

Please sign in to comment.