Skip to content

Commit

Permalink
ignore riders, only warn for ridees
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jun 30, 2024
1 parent 63447ce commit adf4fd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Template for new versions:
- `gui/create-item`: allow creation of adamantine thread, wool, and yarn
- `gui/notify`: the notification panel no longer responds to the Enter key so Enter key is passed through to the vanilla UI
- `clear-smoke`: properly tag smoke flows for garbage collection to avoid memory leak
- `warn-stranded`: don't warn for babies carried by mothers who happen to be gathering fruit from trees

## Misc Improvements
- `item`: option for ignoring uncollected spider webs when you search for "silk"
Expand Down
1 change: 1 addition & 0 deletions warn-stranded.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function getStrandedGroups()
local unitsByWalkGroup, ignoredUnitsByWalkGroup = {}, {}

for _, unit in ipairs(dfhack.units.getCitizens(true)) do
if unit.relationship_ids.RiderMount ~= -1 then goto skip end
local unitPos = xyz2pos(dfhack.units.getPosition(unit))
local walkGroup = getWalkGroup(unitPos)

Expand Down

0 comments on commit adf4fd7

Please sign in to comment.