3333--- @return boolean ? catalystAppearanceMissing # true if the item will teach a new appearance when catalysed
3434--- @return boolean ? catalystUpgradeAppearanceMissing # true if the item will teach a new appearance when catalysed AND upgraded to the next tier
3535--- @return boolean ? upgradeAppearanceMissing # true if the item will teach a new appearance when upgraded to the next tier
36- --- @return boolean upgradeAppearanceLearnedFromOtherItem # true if the appearance is learned from another item
36+ --- @return boolean catalystAppearanceLearnedFromOtherItem # true if the appearance is learned from another item
3737--- @return boolean catalystUpgradeAppearanceLearnedFromOtherItem # true if the appearance is learned from another item
3838--- @return boolean upgradeAppearanceLearnedFromOtherItem # true if the appearance is learned from another item
3939function api .IsAppearanceMissing (itemLink , classID )
40+ local result = TUM :IsAppearanceMissing (itemLink , classID )
41+
42+ return
43+ result .canCatalyse ,
44+ result .canUpgrade ,
45+ result .catalystAppearanceMissing ,
46+ result .catalystUpgradeAppearanceMissing ,
47+ result .upgradeAppearanceMissing ,
48+ result .catalystAppearanceLearnedFromOtherItem ,
49+ result .catalystUpgradeAppearanceLearnedFromOtherItem ,
50+ result .upgradeAppearanceLearnedFromOtherItem
51+ end
52+
53+ --- Identical to IsAppearanceMissing, but returns a table instead
54+ --- @see api.IsAppearanceMissing
55+ --- @param itemLink string
56+ --- @param classID number ? # defaults to the player's class
57+ --- @return TUM_AppearanceMissingResult result
58+ function api .GetAppearanceMissingData (itemLink , classID )
4059 return TUM :IsAppearanceMissing (itemLink , classID )
41- end
60+ end
0 commit comments