Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ Template for new versions:
- `autodump`: ``destroy`` no longer leaves the contents of destroyed containers in limbo or crashes when destroying unit-held items
- `buildingplan`: fix roller material estimate asking for one chain per tile instead of one chain total
- `buildingplan`: fix "Unlink all" only unlinking some mechanisms (or crashing) when freeing mechanisms from the building
- `sort`: fix the Places/Workshops and task searches missing workshops by their current display names (e.g. "Stoneworker's Workshop", "Screw Press")
- `stocks`: overlay now resets scroll position when collapsing categories so the item list is no longer left blank and unscrollable
- `tiletypes`: remove plants (including trees) rooted on a tile that is painted into something that cannot host them, so cleared ground no longer regrows floating trees
- `timestream`: deal properly with units who have breathing difficulties
- `stocks`: overlay now resets scroll position when collapsing categories so the item list is no longer left blank and unscrollable
- Fixed persistent site data API (``dfhack.persistent.saveSiteData``/``getSiteData``) failing on newly reclaimed fortresses until the first save

## Misc Improvements
Expand Down
4 changes: 4 additions & 0 deletions plugins/lua/sort/info.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ local function get_task_search_key(cri_unit)
table.insert(result, bld.name)
local btype = bld:getType()
if btype == df.building_type.Workshop then
-- the display name may differ from the enum item name (e.g.
-- Masons -> "Stoneworker's Workshop") and is the raw-defined
-- name for custom workshops
table.insert(result, dfhack.buildings.getName(bld))
table.insert(result, df.workshop_type.attrs[bld.type].name or '')
table.insert(result, df.workshop_type[bld.type])
elseif btype == df.building_type.Furnace then
Expand Down
6 changes: 6 additions & 0 deletions plugins/lua/sort/places.lua
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ local function get_workshop_search_key(workshop)
end

table.insert(result, workshop.name)

-- the display name may differ from the enum item name (e.g. Masons ->
-- "Stoneworker's Workshop") and is the raw-defined name for custom
-- workshops
table.insert(result, dfhack.buildings.getName(workshop))

table.insert(result, df.workshop_type.attrs[workshop.type].name or '')
table.insert(result, df.workshop_type[workshop.type])

Expand Down
Loading