diff --git a/changelog.txt b/changelog.txt index 9ca3d5e44..df28643e2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -29,6 +29,7 @@ Template for new versions: ## New Tools ## New Features +- `fix/loyaltycascade`: Added announcements for units who aren't renegades but still got removed from conflicts by makeown.remove_from_conflict in fixUnit ## Fixes diff --git a/fix/loyaltycascade.lua b/fix/loyaltycascade.lua index 3409750cb..b91521b07 100644 --- a/fix/loyaltycascade.lua +++ b/fix/loyaltycascade.lua @@ -77,7 +77,14 @@ local function fixUnit(unit) makeown.clear_enemy_status(unit) end - return makeown.remove_from_conflict(unit) or fixed + local calmed = makeown.remove_from_conflict(unit) + + if calmed and not fixed then + dfhack.gui.showAnnouncement( + ('loyaltycascade: %s is now removed from miscellaneous conflicts'):format(unit_name), COLOR_WHITE) + end + + return calmed or fixed end local count = 0