filter out non-denominational temples if one is established

develop
Myk Taylor 2023-11-04 19:06:03 -07:00
parent f93bb60b3b
commit 749ccc5182
No known key found for this signature in database
2 changed files with 1 additions and 1 deletions

@ -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

@ -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