Small hack how to add mitigation values:
Lua Code:
local function GetDisplayValue(self)
local value = self:GetValue() / ((GetUnitLevel("player") + GetUnitVeteranRank("player")) * 10)
return zo_strformat(SI_STAT_VALUE_PERCENT, value)
end
local CreateAttributesSection_Orig = ZO_Stats.CreateAttributesSection
local function CreateAttributesSection(self)
CreateAttributesSection_Orig(self)
self:SetNextControlPadding(0)
self:AddStatRow(STAT_SPELL_MITIGATION, STAT_MITIGATION)
self.statEntries[STAT_SPELL_MITIGATION].name:SetText("Spell Resistance Value")
self.statEntries[STAT_SPELL_MITIGATION].value.statType = STAT_SPELL_RESIST
self.statEntries[STAT_SPELL_MITIGATION].GetDisplayValue = GetDisplayValue
self.statEntries[STAT_MITIGATION].name:SetText("Physical Resistance Value")
self.statEntries[STAT_MITIGATION].value.statType = STAT_PHYSICAL_RESIST
self.statEntries[STAT_MITIGATION].GetDisplayValue = GetDisplayValue
end
ZO_Stats.CreateAttributesSection = CreateAttributesSection
Result: