ingame/crafting/smithingcreation_shared.lua:504 -- self.materialQuantitySpinner:SetValueFormatFunction(function(value)
if self.materialList then
local data = self.materialList:GetSelectedData()
if data then
local _, _, _, meetsRankRequirement = self:GetMaterialInformation(data)
local combination = data.combinations[value]
if combination.isChampionPoint then
if meetsRankRequirement then
return zo_strformat(SI_SMITHING_CREATED_CHAMPION_POINTS, ZO_GetChampionIconMarkupString("100%"), ZO_WHITE:Colorize(combination.createsItemOfLevel))
else
return ZO_ERROR_COLOR:Colorize(zo_strformat(SI_SMITHING_CREATED_CHAMPION_POINTS, ZO_GetChampionIconMarkupStringInheritColor("100%"), combination.createsItemOfLevel))
end
else
if meetsRankRequirement then
return zo_strformat(SI_SMITHING_CREATED_LEVEL, ZO_WHITE:Colorize(combination.createsItemOfLevel))
else
return ZO_ERROR_COLOR:Colorize(zo_strformat(SI_SMITHING_CREATED_LEVEL, combination.createsItemOfLevel))
end
end
end
end
end)