WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   TradeSkill recipes now can have optional ingredients (https://www.wowinterface.com/forums/showthread.php?t=58334)

bsmorgan 10-20-20 02:45 PM

TradeSkill recipes now can have optional ingredients
 
Has anyone deciphered how to get information about these optional ingredients? In Blizzard_TradeSkillDetails.lua (around line 541) I found:

Code:

                local optionalReagentSlots = C_TradeSkillUI.GetOptionalReagentInfo(self.selectedRecipeID);
                local numOptionalReagentSlots = #optionalReagentSlots;
                local hasOptionalReagentSlots = numOptionalReagentSlots > 0;

After that, my head starts to hurt trying to decipher anymore.

Xrystal 10-20-20 03:17 PM

There's some stuff in https://www.townlong-yak.com/framexm...umentation.lua file regarding the optional reagents if you haven't looked at that file yet.

The following are the ones I could see that you didn't mention:

optReagentText = GetOptionalReagentBonusText(recipeSpellID, optReagentIndex, optReagentInfo)


OptionalReagentSlot = {
requiredSkillRank (number)
slotText (string)
options (table of numbers)
}

bsmorgan 10-21-20 03:48 AM

Thanks for the link. Is it documented anywhere how to find the Blizzard_APIDocumentation?

I'm the author/maintainer of Skillet and optional reagents throws a huge monkey wrench into one of its major features, a built-in queue for creating multiple, different items.

For all of Skillet's features to work, I can't just add the base item to the queue. How to expand Skillet's internal database(s) to handle queuing and crafting is currently overwhelming.


All times are GMT -6. The time now is 05:16 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI