View Feature Request
filter ingredients on skill requirement and food quality
Feature #: 68
File: Sous Chef - Provisioning Helper (Recipe helper/search)
Date: 04/10/14 02:05 PM
By: facit
Status: Feature Implemented
I think it would be good to be able to filter what ingredients are shown so that if you only want to make blue (arcane quality) food, you can choose that. Also if you could filter food on skill requirements that would be an easy way of only marking food that is used for certain levels.

I have written some code that does this. If you want to look at it and maybe at it to your addon you can have it. No strings attacked. Just happy to help make a great addon better. =)

RSS 2.0 Feed for Favorite CommentsNotes Sort Options
By: Wobin - 04/10/14 05:06 PM
I'll quite happily look at the code. Send it to wobster at gmail, if you could?
By: facit - 05/02/14 06:21 PM
Unfortunately I forgot to copy it when I updated the addon.
However it isn't that hard really.
You would add a dropdown in the sous chef settings for the different qualities (magic, arcane and artifact) and for skill level.
Then in SousChef.ParseRecipes() about 13 lines down is
"local _, _, ingredientCount, level, _, specialType = GetRecipeInfo(listIndex, recipeIndex)".
You could add qualityReq like this;
"local _, _, ingredientCount, level, qualityReq, specialType = GetRecipeInfo(listIndex, recipeIndex)".
And then compare the setting with qualityReq and level before you add the recipe to the cookbook.
That should be enough, right?
By: Wobin - 05/02/14 07:28 PM
I'm actually working on making a 'favourite recipes' option in the Provisioning tab, where you can mark recipes so that their ingredients will stand out.

Unfortunately, we can't extract the food level from the recipes, no access to that data anywhere.