From 749ccc518253f93d86bd325cfbbf57901a8eda9e Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Sat, 4 Nov 2023 19:06:03 -0700 Subject: [PATCH] filter out non-denominational temples if one is established --- docs/changelog.txt | 1 + plugins/lua/sort/locationselector.lua | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index 7a13ba6f4..2a03e6a60 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -62,6 +62,7 @@ Template for new versions: ## Fixes - `stockpiles`: hide configure and help buttons when the overlay panel is minimized - `caravan`: price of vermin swarms correctly adjusted down. a stack of 10000 bees is worth 10, not 10000 +- `sort`: when filtering out already-established temples in the location assignment screen, also filter out the "No specific deity" option if a non-denominational temple has already been established ## Misc Improvements - `buildingplan`: display how many items are available on the planner panel diff --git a/plugins/lua/sort/locationselector.lua b/plugins/lua/sort/locationselector.lua index f88095203..bdacc1630 100644 --- a/plugins/lua/sort/locationselector.lua +++ b/plugins/lua/sort/locationselector.lua @@ -131,7 +131,6 @@ function LocationSelectorOverlay:get_cache() end function LocationSelectorOverlay:matches_temple_filter(id, flag) - if id == -1 then return true end local hide_established = self.subviews.hide_established:getOptionValue() return not hide_established or not safe_index(self:get_cache(), 'temple', flag, id) end