Skip to content

Commit

Permalink
don't mark visitors as hostile
Browse files Browse the repository at this point in the history
unless they are
  • Loading branch information
myk002 committed Nov 30, 2024
1 parent f8af306 commit b37d2b9
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 @@ -44,6 +44,7 @@ Template for new versions:
- `emigration`: save-and-reload no longer resets the emigration cycle timeout
- `geld`, `ungeld`: save-and-reload no longer loses changes done by `geld` and `ungeld` for units who are historical figures
- `rejuvenate`: fix error when specifying ``--age`` parameter
- `gui/notify`: don't classify (peacefully) visiting night creatures as hostile

## Misc Improvements
- `idle-crafting`: also support making shell crafts for workshops with linked input stockpiles
Expand Down
1 change: 1 addition & 0 deletions internal/notify/notifications.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ local function for_hostile(fn, reverse)
not dfhack.units.isFortControlled(unit) and
not dfhack.units.isHidden(unit) and
not dfhack.units.isAgitated(unit) and
(not unit.flags2.visitor or unit.flags2.visitor_uninvited) and
dfhack.units.isDanger(unit)
end, fn, reverse)
end
Expand Down

0 comments on commit b37d2b9

Please sign in to comment.