CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.64k stars 4.18k forks source link

Add Category & Sub-category Recipe Search Filters #55484

Closed LeahLuong closed 1 year ago

LeahLuong commented 2 years ago

Is your feature request related to a problem? Please describe.

Generating recipe lists that are easy to parse can be difficult. Compounding this, the "d:" search function is cumbersome to use when it has to search the entire list of known recipes.

As an example, try generating a list of only XL headwear. Running an "xl,d:head" search turns up every XL suit w/ a head location as well as the XL survivor trenchcoat, which contains a hood for keeping the head warm when unencumbered, in addition to the list of XL headwear. This list can be shortened thru the use of exclusion filters but this can be dicey because you may inadvertently cut out items you actually want to see. Furthermore, 'e'xamining any item on the list runs the "d:" search again when backing out to the list, slowing 1's ability to compare items.

Solution you would like.

Having search parameters for category & sub-category would help w/ these issues.

Using only 2 filters, 1 could generate a list of all XL headwear ("xl,y:head" where "y:" would be the search filter for sub-category). The same could done when looking for foods w/ a specific ingredient ("Y:foods,c:saltpeter" where "Y:" would be the search filter for category).

Combining category/sub-category filters w/ the "d:" filter can greatly reduce list generation time because the game doesn't have to comb thru every item description, only those in the category/sub-category specified. Excluding categories/sub-categories would, of course, be an option although not as efficient in most cases.

Describe alternatives you have considered.

There is no alternative. Progress means only moving forwards. Improvement means perpetually moving upwards. & twirling, always twirling.

Additional context

The game shouldn't need to run the "d:" search filter every time 1 backs out of 'e'xamining an item on the list generated using this filter. This renders an already clumsy function practically unusable. Load the generated list into RAM or virtual memory or something for the single search session.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not \'bump\' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

Night-Pryanik commented 1 year ago

Closing as stale, since stalebot can't do it by itself.