Skip to content
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 @@ -44,6 +44,7 @@ Template for new versions:
- `caravan`: fix doubled "total value of items marked for trade" after toggling filter options, and keep item marks when switching between filter views in the ``Bring goods to depot`` overlay
- `combine`: dyes are combined again, but only when their ``dye_profile`` matches, so mixed dyes no longer revert to a component dye
- `fix/loyaltycascade`: guard against citizens that are not historical figures and emit a warning.
- `full-heal`: ``--all-citizens`` still matches dead citizens (for resurrection) now that ``dfhack.units.isCitizen`` excludes the dead
- `gui/settings-manager`: preserve built-in work details added after saved settings were created
- `gui/siegemanager`: fix nil index if there are no siege engines on the map
- `hide-tutorials`: also suppress the adventure mode start tutorial (defaults its checkbox to off and dismisses the popups)
Expand Down
7 changes: 5 additions & 2 deletions full-heal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,12 @@ if args.all then
heal(unit,args.r,args.keep_corpse)
end
elseif args.all_citizens then
-- can't use dfhack.units.getCitizens since we want dead ones too
-- can't use dfhack.units.getCitizens since we want dead ones too;
-- isCitizen/isResident exclude the dead, but dead citizens retain
-- their group membership link
for _,unit in ipairs(df.global.world.units.active) do
if dfhack.units.isCitizen(unit, true) or dfhack.units.isResident(unit) then
if dfhack.units.isCitizen(unit, true) or dfhack.units.isResident(unit) or
(dfhack.units.isDead(unit) and dfhack.units.isOwnGroup(unit)) then
heal(unit,args.r,args.keep_corpse)
end
end
Expand Down
Loading