Thread: Update 4.0
View Single Post
05/10/18, 02:38 PM   #37
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,966
Just a note about crafting functions which were global and removed now.
Old and removed:
Lua Code:
  1. function ZO_CraftingUtils_IsTraitAppliedToWeapons(traitType)
  2.     local traitCategory = GetItemTraitTypeCategory(traitType)
  3.     return traitCategory == ITEM_TRAIT_TYPE_CATEGORY_WEAPON
  4. end
  5.  
  6. function ZO_CraftingUtils_IsTraitAppliedToArmor(traitType)
  7.     local traitCategory = GetItemTraitTypeCategory(traitType)
  8.     return traitCategory == ITEM_TRAIT_TYPE_CATEGORY_ARMOR
  9. end

Replaced by:
ZO_CraftingUtils_GetSmithingFilterFromTrait(smithingResearchLineTraitInfo)

-> See file
/esoui/ingame/crafting/smithingresearch_shared.lua
-> function ZO_SharedSmithingResearch:Refresh()

e.g. used like this:
local expectedTypeFilter = ZO_CraftingUtils_GetSmithingFilterFromTrait(GetSmithingResearchLineTraitInfo(craftingType, researchLineIndex, 1))

Last edited by Baertram : 05/13/18 at 11:53 PM.
  Reply With Quote