Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[warn-stranded] ignore riders, only warn for ridees #1215

Merged
merged 1 commit into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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