Skip to content

Commit 42c583e

Browse files
committed
add more stats to show for sidebar
1 parent 3294f5a commit 42c583e

File tree

1 file changed

+38
-8
lines changed

1 file changed

+38
-8
lines changed

src/Modules/BuildDisplayStats.lua

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,25 +171,55 @@ local StatList = {
171171
{ stat = "LightningResistOverCap", label = "Lightning Res. Over Max", fmt = "d%%", hideStat = true, displayStat = true },
172172
{ stat = "ChaosResist", label = "Chaos Resistance", fmt = "d%%", color = colorCodes.CHAOS, condFunc = function(v,o) return not o.ChaosInoculation end, overCapStat = "ChaosResistOverCap", displayStat = true },
173173
{ stat = "ChaosResistOverCap", label = "Chaos Res. Over Max", fmt = "d%%", hideStat = true, displayStat = true },
174-
{ label = "Chaos Resistance", val = "Immune", labelStat = "ChaosResist", color = colorCodes.CHAOS, condFunc = function(o) return o.ChaosInoculation end, displayStat = true },
174+
{ label = " Chaos Resistance", val = "Immune", labelStat = "ChaosResist", color = colorCodes.CHAOS, condFunc = function(o) return o.ChaosInoculation end, displayStat = true },
175175
}, {
176176
{ stat = "EffectiveMovementSpeedMod", label = "Movement Speed Modifier", fmt = "+d%%", mod = true, condFunc = function() return true end, displayStat = true },
177+
{ stat = "QuantityMultiplier", label = "Quantity Multiplier", fmt = "+d%%" },
178+
{ stat = "StoredUses", label = "Stored Uses", fmt = "d" },
179+
{ stat = "Duration", label = "Skill Duration", fmt = ".2f", flag = "duration" },
180+
{ stat = "DurationSecondary", label = "Secondary Duration", fmt = ".2f", flag = "duration" },
181+
{ stat = "AuraDuration", label = "Aura Duration", fmt = ".2f" },
182+
{ stat = "ReserveDuration", label = "Reserve Duration", fmt = ".2f" },
183+
{ stat = "SoulGainPreventionDuration", label = "Soul Gain Prevent.", fmt = ".2f" },
184+
{ stat = "SustainableTrauma", label = "Sustainable Trauma", fmt = "d" },
185+
{ stat = "ProjectileCount", label = "Projectile Count", fmt = "d", flag = "projectile" },
186+
{ stat = "PierceCountString", label = "Pierce Count", fmt = "d" },
187+
{ stat = "ForkCountString", label = "Fork Count", fmt = "d" },
188+
{ stat = "ChainMaxString", label = "Max Chain Count", fmt = "d" },
189+
{ stat = "ProjectileSpeedMod", label = "Proj. Speed Mod", fmt = ".2f", flag = "projectile" },
190+
{ stat = "BounceCount", label = "Bounces Count", fmt = "d", flag = "bounce" },
191+
{ stat = "AuraEffectMod", label = "Aura Effect Mod", fmt = ".2f" },
192+
{ stat = "CurseEffectMod", label = "Curse Effect Mod", fmt = ".2f" },
177193
}, {
178194
{ stat = "FullDPS", label = "Full DPS", fmt = ".1f", color = colorCodes.CURRENCY, compPercent = true, displayStat = true },
179195
{ stat = "FullDotDPS", label = "Full Dot DPS", fmt = ".1f", color = colorCodes.CURRENCY, compPercent = true, condFunc = function (v) return v >= data.misc.DotDpsCap end, warnFunc = function (v) return "Full Dot DPS exceeds in game limit" end, displayStat = true },
180196
}, {
181197
{ stat = "SkillDPS", label = "Skill DPS", condFunc = function() return true end, displayStat = true },
182198
}, {
183-
{ stat = "PowerCharges", extraSaveStat = true },
184-
{ stat = "PowerChargesMax", extraSaveStat = true },
185-
{ stat = "FrenzyCharges", extraSaveStat = true },
186-
{ stat = "FrenzyChargesMax", extraSaveStat = true },
187-
{ stat = "EnduranceCharges", extraSaveStat = true },
188-
{ stat = "EnduranceChargesMax", extraSaveStat = true },
189-
{ stat = "ActiveTotemLimit", extraSaveStat = true },
199+
{ stat = "PowerCharges", label = "Power Charges", extraSaveStat = true },
200+
{ stat = "PowerChargesMax", label = "Power Charges Max", extraSaveStat = true },
201+
{ stat = "FrenzyCharges", label = "Frenzy Charges", extraSaveStat = true },
202+
{ stat = "FrenzyChargesMax", label = "Frenzy Charges Max", extraSaveStat = true },
203+
{ stat = "EnduranceCharges", label = "Endurance Charges", extraSaveStat = true },
204+
{ stat = "EnduranceChargesMax", label = "Endurance Charges Max", extraSaveStat = true },
205+
{ stat = "ActiveTotemLimit", label = "Active Totem Limit", extraSaveStat = true },
190206
}
191207
}
192208

209+
--[[
210+
-- method for generating a copy for settings
211+
main.displayStatList = copyTable(StatList)
212+
for _, statGroup in ipairs(main.displayStatList) do
213+
for _, stat in ipairs(statGroup) do
214+
for k, v in pairs(stat) do
215+
if not (k == "label" or k == "displayStat" or k == "minionDisplayStat" or k == "extraSaveStat") then
216+
stat[k] = nil
217+
end
218+
end
219+
end
220+
end
221+
--]]
222+
193223
local displayStats = {}
194224
local minionDisplayStats = {}
195225
local extraSaveStats = {}

0 commit comments

Comments
 (0)