Skip to content

Commit 9efa054

Browse files
MizkiiLocalIdentity
andauthored
Add ability to sort tree and gear slots by Spirit and Item Rarity (#1325)
* Add: Rarity and Spirit Weight Stats * Adjust comment --------- Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent a960b12 commit 9efa054

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/Modules/CalcPerform.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,10 @@ function calcs.perform(env, skipEHP)
11011101
end
11021102
end
11031103

1104+
-- Stat sorting category calcs
1105+
output.EffectiveLootRarityMod = calcLib.mod(modDB, nil, "LootRarity")
1106+
output.Spirit = m_floor(calcLib.val(modDB, nil, "Spirit"))
1107+
11041108
-- Special Rarity / Quantity Calc for Bisco's
11051109
local lootQuantityNormalEnemies = modDB:Sum("INC", nil, "LootQuantityNormalEnemies")
11061110
output.LootQuantityNormalEnemies = (lootQuantityNormalEnemies > 0) and lootQuantityNormalEnemies + modDB:Sum("INC", nil, "LootQuantity") or 0

src/Modules/Data.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ data.powerStatList = {
139139
{ stat="ManaRegen", label="Mana regen" },
140140
{ stat="ManaLeechRate", label="Mana leech" },
141141
{ stat="Ward", label="Ward" },
142+
{ stat="Spirit", label="Spirit" },
142143
{ stat="Str", label="Strength" },
143144
{ stat="Dex", label="Dexterity" },
144145
{ stat="Int", label="Intelligence" },
@@ -163,6 +164,7 @@ data.powerStatList = {
163164
{ stat="BlockChance", label="Block Chance" },
164165
{ stat="SpellBlockChance", label="Spell Block Chance" },
165166
{ stat="SpellSuppressionChance", label="Spell Suppression Chance" },
167+
{ stat="EffectiveLootRarityMod", label="Rarity of Items found" },
166168
}
167169

168170
data.misc = { -- magic numbers

0 commit comments

Comments
 (0)