Originally Posted by Lakashi
No, I meant in an addon, in the code.
|
You can download
AI Research Grid and see how the code in there works. There is no single function that can tell you if all the traits are known for a given item (sword, shield, legs, etc.).
Look for PopulateTraitDataForCraft in AIResearchGrid.lua. It has all the function calls necessary to determine if a trait is know for an item, as well as how much time might be left on research for a trait.