Merge pull request #3959 from myk002/myk_location

[sort] filter out non-denominational temples if one is established
develop
Myk 2023-11-04 19:37:31 -07:00 committed by GitHub
commit f986029f3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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