Godot Version
4.5
Question
How would you go about implementing a cooking system like Don’t Starve’s, where a recipe can be made using a combination of specific items and any certain type of items?
(Example: the froggle bunwich can be made using one frog leg and any kind of vegetable from carrots to cactus etc)
My current cooking system is like this
@export var ingredients: Array[FoodItems]
Func cook():
If ingredients in recipe_dictionary:
Return recipe_dictionary[ingredients]
But this only works if all items are the same, and can’t work with recipes that can take in any type of vegetable, for example.