Skip to content

fix 5975 by fixing api - #5977

Merged
ab9rf merged 1 commit into
DFHack:developfrom
ab9rf:fix-5975
Sep 26, 2026
Merged

ab9rf merged 1 commit into
DFHack:developfrom
ab9rf:fix-5975

Conversation

@ab9rf

@ab9rf ab9rf commented Sep 24, 2026

Copy link
Copy Markdown
Member

This PR fixes a defect in the Units API that caused #5975. The isCitizen and isResident filters would include dead units when include_insane was requested, which is incorrect behavior. API corrected.

In addition to fixing the headline defect in stressicons, this also fixes latent bugs in preserve-rooms and in sort (for the "stress" sort option). full-heal requires an adjustment because that tool can explicitly be used on dead citizens.

FIxes #5975. A collateral change in scripts will address the regression in full-heal caused by this API update

This PR fixes a defect in the Units API that caused DFHack#5975. The `isCitizen` and `isResident` filters would include dead units when `include_insane` was requested, which is incorrect behavior. API corrected.

In addition to fixing the headline defect in `stressicons`, this also fixes latent bugs in `preserve-rooms` and in `sort` (for the "stress" sort option). `full-heal` requires an adjustment because that tool can explicitly be used on dead citizens.

FIxes DFHack#5975. A collateral change in `scripts` will address the regression in `full-heal` caused by this API update
@ab9rf
ab9rf merged commit f98624c into DFHack:develop Sep 26, 2026
14 checks passed
ab9rf added a commit to inder-chakal/scripts that referenced this pull request Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(sort.stress_icons) Unit lists include dead or otherwise missing units

1 participant