Im struggling at the moment to understand how varients work. I'm currently working on a patch for Expanded Foods and The Art of Growing. I've managed to create varient items for each different catagory of wildness from The Art of Growing for Expanded Foods, but trying to implement them into recipes has been a headach. I'm very new to vintage story and it's moding scene but I'm currently studying programming so i have some background there, but I can't for the life of me figure it out.
To give some context, the wiki says this on Varient-Based Recipes:
Following those instructions I have managed to create this so far:
This recipes functions correctly but I would like to do something along the lines of this:
Which is a snippet from the code I used to create all the varients based off of The Art of Growing's system. Im hoping that someone can guide me or has a better understanding of the syntax used in the JSON files, I would like to not have to repeat the process for each varient as it would make the work far more time consuming. Im hoping to achieve something that looks like this:
Please if anyone knows of a way or can just better explain to me the syntax or what is allowed then I would greatly appreciate it