Skip to content

Commit dcffcbe

Browse files
committed
feat: add ward sidebar display stats and breakdown rows
1 parent f7c0cca commit dcffcbe

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

src/Modules/BuildDisplayStats.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ local displayStats = {
150150
{ },
151151
{ stat = "Ward", label = "Runic Ward", fmt = "d", color = colorCodes.WARD, compPercent = true },
152152
{ stat = "WardRegen", label = "Ward Regen", color = colorCodes.WARD, fmt = ".1f", condFunc = function(v,o) return v ~= 0 end },
153+
{ stat = "WardBypass", label = "Ward Bypass", color = colorCodes.WARD, fmt = "d%%", lowerIsBetter = true, condFunc = function(v,o) return (v or 0) > 0 end },
154+
{ stat = "WardRecoverOnBlock", label = "Ward on Block", color = colorCodes.WARD, fmt = "d", condFunc = function(v,o) return (v or 0) > 0 end },
155+
{ stat = "WardCoverOnMinionDeath", label = "Ward on Minion Death", color = colorCodes.WARD, fmt = "d%%", condFunc = function(v,o) return (v or 0) > 0 end },
153156
{ },
154157
{ stat = "Rage", label = "Rage", fmt = "d", color = colorCodes.RAGE, compPercent = true },
155158
{ stat = "RageRegenRecovery", label = "Rage Regen", fmt = ".1f", color = colorCodes.RAGE, compPercent = true },

src/Modules/CalcSections.lua

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,6 +1707,24 @@ return {
17071707
{ label = "Sources", modName = "WardRegen", modType = "BASE" },
17081708
{ label = "Increased Ward Regen", modName = "WardRegen", modType = "INC" },
17091709
}, },
1710+
{ label = "Bypass", haveOutput = "WardBypass", { format = "{0:output:WardBypass}%",
1711+
{ modName = "WardBypass", modType = "BASE" },
1712+
}, },
1713+
{ label = "Recover on Block", haveOutput = "WardRecoverOnBlock", { format = "{0:output:WardRecoverOnBlock}",
1714+
{ modName = "WardRecoverOnBlock", modType = "BASE" },
1715+
}, },
1716+
{ label = "Recover on Charm Use", haveOutput = "WardRecoverOnCharmUse", { format = "{0:output:WardRecoverOnCharmUse}",
1717+
{ modName = "WardRecoverOnCharmUse", modType = "BASE" },
1718+
}, },
1719+
{ label = "Recover on Minion Death", haveOutput = "WardCoverOnMinionDeath", { format = "{0:output:WardCoverOnMinionDeath}%",
1720+
{ modName = "WardCoverOnMinionDeath", modType = "BASE" },
1721+
}, },
1722+
{ label = "Rune: Block Damage Taken", haveOutput = "RuneWardBlockDamage", { format = "{0:output:RuneWardBlockDamage}%",
1723+
{ modName = "RuneWardBlockDamage", modType = "BASE" },
1724+
}, },
1725+
{ label = "Rune: INC Drain Rate", haveOutput = "RuneWardDamageTaken", { format = "{0:output:RuneWardDamageTaken}%",
1726+
{ modName = "RuneWardDamageTaken", modType = "INC" },
1727+
}, },
17101728
} }
17111729
} },
17121730
-- secondary defenses

0 commit comments

Comments
 (0)