Skip to content

sort: fix workshop search missing current display names - #5921

Open
Alistair-Afton wants to merge 1 commit into
DFHack:developfrom
Alistair-Afton:fix-workshop-search-names
Open

Alistair-Afton wants to merge 1 commit into
DFHack:developfrom
Alistair-Afton:fix-workshop-search-names

Conversation

@Alistair-Afton

Copy link
Copy Markdown
Contributor

Summary

  • Fixes BUG: Searching for Stoneworker's Workshop #5711: searching the Places/Workshops list for "Stoneworker's Workshop" found nothing because the search key was built from the enum item name (Masons) and a stale df-structures name attr ("Mason's Workshop")
  • Add each workshop's getName() output to the search key so searches match what the list actually displays
  • Same fix applied to the task search key in plugins.sort.info
  • Also covers custom workshop names (e.g. "Screw Press", "Soap Maker's Workshop") which had no searchable name at all
  • Companion data fix in workshop_type: update name attrs to current in-game names df-structures#907 corrects the stale attrs themselves

Testing

  • In a live fort on 53.16, extracted the actual get_search_key_fn from the Places overlay and ran it on real workshops: Masons workshops now produce "Stoneworker's Workshop" in their key, and custom workshops produce their real names

Searching the Places/Workshops list for 'Stoneworker's Workshop' found
nothing because the search key was built from the enum item name and a
stale df-structures name attr. Add each workshop's getName() output to
the search key so searches match what the list actually displays, and
cover custom workshop names (e.g. 'Screw Press') that have no enum
attr at all.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Searching for Stoneworker's Workshop

1 participant