Help with crafting system similar to terraria
Hi.
I was searching around the crafting systems but almost every crafting system is similar to minecraft.
In terraria every crafting recipe will show up on the left that you have enough materials for and does not show anything that you can't craft at that moment. How can I structure this system to work with 1000 items.
All i could come up (did not actually write) is that I loop through all of the craftable items and check if I have enough material in the inventory for that item and then the crafting inventory could display that item as craftable. But I imagine that with 1000+ items this would cause some performance issues.
The reason terraria have different crafing tables is because, they don't need to loop through all of items just a fraction that is craftable in that crafting table and their approach is something similar to what i have in mind?
How would you create something like this? NOTE: I do not need actual code, just some idea about the whole system.
Thank you.
Your answer
Follow this Question
Related Questions
Inventory and crafting 1 Answer
Inventory Add Item error 2 Answers
2d mobile Multi Scene inventory 0 Answers
Inventory help. 0 Answers