Skip to content

Commit 271896f

Browse files
committed
do not assign crafting jobs to nobles holding meetings
1 parent eb4ea81 commit 271896f

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Template for new versions:
3838
## Fixes
3939
- `position`: support for adv mode look cursor
4040
- `gui/liquids`: using the remove tool with magma selected will no longer create unexpected unpathable tiles
41+
- `idle-crafting`: do not assign crafting jobs to nobles holding meetings (avoid dangling jobs)
4142

4243
## Misc Improvements
4344
- `hide-tutorials`: handle tutorial popups for adventure mode

idle-crafting.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ end
333333
function unitIsAvailable(unit)
334334
if unit.job.current_job then
335335
return false
336+
elseif #unit.specific_refs > 0 then -- activities such as "Conduct Meeting"
337+
return false
336338
elseif #unit.social_activities > 0 then
337339
return false
338340
elseif #unit.individual_drills > 0 then

0 commit comments

Comments
 (0)