From 271896f4eae9ad44cab1238afd92c041fc3895c8 Mon Sep 17 00:00:00 2001 From: Christian Doczkal <20443222+chdoc@users.noreply.github.com> Date: Wed, 5 Mar 2025 19:22:36 +0100 Subject: [PATCH] do not assign crafting jobs to nobles holding meetings --- changelog.txt | 1 + idle-crafting.lua | 2 ++ 2 files changed, 3 insertions(+) diff --git a/changelog.txt b/changelog.txt index 7d89fcd860..7b530fff3a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -38,6 +38,7 @@ Template for new versions: ## Fixes - `position`: support for adv mode look cursor - `gui/liquids`: using the remove tool with magma selected will no longer create unexpected unpathable tiles +- `idle-crafting`: do not assign crafting jobs to nobles holding meetings (avoid dangling jobs) ## Misc Improvements - `hide-tutorials`: handle tutorial popups for adventure mode diff --git a/idle-crafting.lua b/idle-crafting.lua index 39a647731c..d67f8122a2 100644 --- a/idle-crafting.lua +++ b/idle-crafting.lua @@ -333,6 +333,8 @@ end function unitIsAvailable(unit) if unit.job.current_job then return false + elseif #unit.specific_refs > 0 then -- activities such as "Conduct Meeting" + return false elseif #unit.social_activities > 0 then return false elseif #unit.individual_drills > 0 then