Skip to content

Commit

Permalink
Merge pull request #1414 from chdoc/fix-idle-crafting
Browse files Browse the repository at this point in the history
`idle-crafting` :  do not assign crafting jobs to nobles holding meetings
  • Loading branch information
myk002 authored Mar 6, 2025
2 parents eb4ea81 + 271896f commit 5310585
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions idle-crafting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5310585

Please sign in to comment.