From b0ccc97eca6d8ee295d343eac8531e2c97b25f0e Mon Sep 17 00:00:00 2001 From: Alex ten Brink Date: Sat, 6 Jan 2024 12:20:29 +0100 Subject: [PATCH] Added migrations for all changed TURDs. Updated changelog. Made TURD migration reset free only once. --- changelog.txt | 26 ++++++++++++++------------ migrations/2.1.13.lua | 18 ++++++++++++++++++ scripts/turd/turd.lua | 4 +++- 3 files changed, 35 insertions(+), 13 deletions(-) diff --git a/changelog.txt b/changelog.txt index 9ac555e3..4e916e31 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Version: 2.1.13 Date: ??? Changes: + - codex recipes no longer allow productivity effects - fix zungrugor and numals not being disabled even when they had no animal modules - fixed that fawogae mk4 and fawogae mk5 were both unlocked at the same science tier (py4) - buffed the fawogae->coal recipe by requiring 1 fawogae input instead of 10 @@ -15,18 +16,19 @@ Date: ??? - added non blocking mode to caravans TURD: - added T.U.R.D unselect infinite tech to allow the indecisive to revert a single T.U.R.D selection - - added a new T.U.R.D: the composter turd. why is it unlocked at military science? don't ask too many questions - - buffed all three paths of bioprinter turd - - buffed all three paths of rennea turd - - buffed all three paths of arthurian turd (path 1: abacus crafting time halfed, prod allowed in abacus recipe, prod module boost increased 15% -> 25%) (path 2: now also removes bedding from egg recipes & speeds egg recipes by 2x) (path 3: agar amount increased from 2 -> 5) - - buffed atomizer turd path 2; cognition-osteochain requirement reduced from 5 -> 2 - - buffed sap turd path 2 to give resveratrol instead of cellulose - - buffed paths 1&2 of moondrop turd. path 1 output multipler increased from 10% to 20%. path 2 oxygen output increased 30->40. path 2 recipe time decreased 15s -> 8s. path 2 lamp recycle chance increased 50% -> 75% - - buffed all three paths of moss turd (chlorinated water is effected by productivity, path 2 gives 10% stone back as gravel, path 3 refined syngas recipe is now useable) - - added creature chamber turd (avalible at py science pack 2) credit: soren - - reworked scrondrix turd path 1 & 2 - - reworked kicalk path 1 - - fixed that tuuphra path 2 would just softlock you. lol + - added the option to unselect T.U.R.D paths for free once the next 10 hours after an update if you've chosen a path that got changed + - added a new T.U.R.D: the composter T.U.R.D. why is it unlocked at military science? don't ask too many questions + - buffed all three paths of bioprinter T.U.R.D + - buffed all three paths of rennea T.U.R.D + - buffed all three paths of arthurian T.U.R.D (path 1: abacus crafting time halfed, prod allowed in abacus recipe, prod module boost increased 15% -> 25%) (path 2: now also removes bedding from egg recipes & speeds egg recipes by 2x) (path 3: agar amount increased from 2 -> 5) + - buffed atomizer T.U.R.D path 2; cognition-osteochain requirement reduced from 5 -> 2 + - buffed sap T.U.R.D path 2 to give resveratrol instead of cellulose + - buffed paths 1&2 of moondrop T.U.R.D. path 1 output multipler increased from 10% to 20%. path 2 oxygen output increased 30->40. path 2 recipe time decreased 15s -> 8s. path 2 lamp recycle chance increased 50% -> 75% + - buffed all three paths of moss T.U.R.D (chlorinated water is effected by productivity, path 2 gives 10% stone back as gravel, path 3 refined syngas recipe is now useable) + - added creature chamber T.U.R.D (avalible at py science pack 2) credit: soren + - reworked scrondrix T.U.R.D path 1 & 2 + - reworked kicalk T.U.R.D path 1 + - fixed that tuuphra T.U.R.D path 2 would just softlock you. lol --------------------------------------------------------------------------------------------------- Version: 2.1.12 Date: 2023-11-22 diff --git a/migrations/2.1.13.lua b/migrations/2.1.13.lua index 7102bc84..fefdc835 100644 --- a/migrations/2.1.13.lua +++ b/migrations/2.1.13.lua @@ -1,3 +1,21 @@ local turd_migrate = require('__pyalienlife__/scripts/turd/turd-migration') +turd_migrate('sap-upgrade', 'patch') +turd_migrate('bioprinting-upgrade', 'high-viability') +turd_migrate('bioprinting-upgrade', 'biomimetics') +turd_migrate('bioprinting-upgrade', 'covalent') +turd_migrate('rennea-upgrade', 'deadheading') +turd_migrate('rennea-upgrade', 'alltime') +turd_migrate('rennea-upgrade', 'aphid-cleaning') +turd_migrate('scrondrix-upgrade', 'boronb') +turd_migrate('scrondrix-upgrade', 'hspa') +turd_migrate('arthurian-upgrade', 'abacus') +turd_migrate('arthurian-upgrade', 'heated-stone') +turd_migrate('arthurian-upgrade', 'cannibalism') +turd_migrate('atomizer-upgrade', 'sub-atomic') +turd_migrate('kicalk-upgrade', 'wire-netting') +turd_migrate('moss-upgrade', 'spores') +turd_migrate('moss-upgrade', 'hd-moss') +turd_migrate('moss-upgrade', 'inbuilt-moss') turd_migrate('moondrop-upgrade', 'cu') +turd_migrate('moondrop-upgrade', 'moon') diff --git a/scripts/turd/turd.lua b/scripts/turd/turd.lua index 0e970e36..b8eb9c56 100644 --- a/scripts/turd/turd.lua +++ b/scripts/turd/turd.lua @@ -455,7 +455,9 @@ gui_events[defines.events.on_gui_click]['py_turd_confirm_button'] = function(eve end force.print{'turd.font', {'turd.unselected-alert', {'technology-name.'..master_tech_name}, {'technology-name.'..sub_tech_name}, player.name, player.color.r, player.color.g, player.color.b}} turd_bonuses[master_tech_name] = NOT_SELECTED - if not has_turd_migration(force_index, sub_tech_name) then + if has_turd_migration(force_index, sub_tech_name) then + global.turd_migrations[force_index][sub_tech_name] = 0 + else global.turd_reset_remaining[force_index] = global.turd_reset_remaining[force_index] - 1 end unselect_recipes_for_subtech(tech_upgrades[master_tech_name].sub_techs[selection], force, find_all_assembling_machines(force))