CleverRaven / Cataclysm-DDA

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

Conditional Names should be a field in the recipe #74338

Open Maleclypse opened 4 months ago

Maleclypse commented 4 months ago

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

Conditional naming is json line heavy, easily broken by usage of requirement lists, and an excellent candidate for improvement via a small amount of c++

Solution you would like.

I would like to see "conditional_components" as an array based field which accepts requirement lists and item names.
Two methods of definining the conditional name.

  1. apple, 1 This recipe requires a single apple and sets it's conditional name off the singular name of that item. So if you're making cobbler and made it with apples it would be apple cobbler.
  2. triffid_matter, 1, "exo-fruit cobbler". If the player chose to make cobbler with triffid ingredient here you have a defined name.

Describe alternatives you have considered.

This would allow lists to be used in things like icecream and milkshakes without any additional lines for most/all the conditional names. A perfect answer to the commentary in #74269

Additional context

No response

github-actions[bot] commented 3 months 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.