Skip to content

Commit

Permalink
filter out non-denominational temples if one is established
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Nov 5, 2023
1 parent f93bb60 commit 749ccc5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion plugins/lua/sort/locationselector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 749ccc5

Please sign in to comment.