From b4fd18ce3fc4af649367b49305c03fe022f410b4 Mon Sep 17 00:00:00 2001 From: Alex ten Brink Date: Mon, 16 Dec 2024 21:30:42 +0100 Subject: [PATCH] Fixed picked TURDs appearing to be re-pickable when they were not. Resolves https://github.com/pyanodon/pybugreports/issues/769 --- changelog.txt | 1 + scripts/turd/turd.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 698e82cc..c878b334 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ Date: ? - Greatly increased the science pack requirement for the wood processing unit turd from 500 -> 7000. Resolves https://github.com/pyanodon/pybugreports/issues/758 - Fix the base productivity on Composter from Composter TURD path 2. - All caravans can use all caravan outpost types + - Fixed picked TURDs appearing to be re-pickable when they were not. Resolves https://github.com/pyanodon/pybugreports/issues/769 --------------------------------------------------------------------------------------------------- Version: 3.0.31 Date: 2024-11-29 diff --git a/scripts/turd/turd.lua b/scripts/turd/turd.lua index 908a0783..92c73cdd 100644 --- a/scripts/turd/turd.lua +++ b/scripts/turd/turd.lua @@ -77,7 +77,7 @@ local function update_confirm_button(element, player, researched_technologies) if seconds < 10 then seconds = "0" .. seconds end element.style = "confirm_button_without_tooltip" element.caption = {"turd.unselect-migrate", hours, minutes, seconds} - elseif (storage.turd_reset_remaining[force_index] or 0) >= 0 then + elseif (storage.turd_reset_remaining[force_index] or 0) > 0 then element.style = "confirm_button_without_tooltip" element.caption = {"turd.unselect"} else