Skip to content

Commit 390a1d1

Browse files
authored
add "in Radius" lines to time lost affixes (#767)
1 parent bce4396 commit 390a1d1

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/Classes/ItemsTab.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,6 +1647,10 @@ function ItemsTabClass:UpdateAffixControl(control, item, type, outputTable, outp
16471647
if item.type == "Flask" then
16481648
label = mod.affix .. " ^8[" .. modString .. "]"
16491649
end
1650+
-- shorten time-lost jewel affix labels to fit the dropdown
1651+
if label and item.baseName:find("Time%-Lost") ~= nil then
1652+
label = label:gsub(" Passive Skills in Radius also grant", ":")
1653+
end
16501654
control.list[i + 1] = {
16511655
label = label,
16521656
modList = { modId },

src/Modules/Data.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,19 @@ data.itemMods = {
557557
Runes = LoadModule("Data/ModRunes")
558558
}
559559

560+
-- update JewelRadius affixes for Time-Lost jewels
561+
do
562+
for index, value in pairs(data.itemMods.Jewel) do
563+
if index:find("JewelRadius") and value.nodeType and value[1] then
564+
if value.nodeType == 1 then
565+
value[1] = "Small Passive Skills in Radius also grant "..value[1]
566+
elseif value.nodeType == 2 then
567+
value[1] = "Notable Passive Skills in Radius also grant "..value[1]
568+
end
569+
end
570+
end
571+
end
572+
560573
data.costs = LoadModule("Data/Costs")
561574
do
562575
local map = { }

0 commit comments

Comments
 (0)