Skip to content

Commit 4e70d21

Browse files
authored
reduce length of range dropdown names (#161)
1 parent 43510a6 commit 4e70d21

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Classes/Item.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,11 @@ function ItemClass:BuildModList()
15381538
local list, extra = modLib.parseMod(line)
15391539
if list and not extra then
15401540
modLine.modList = list
1541-
t_insert(self.rangeLineList, modLine)
1541+
-- Against the Darkness specific // a way to cut down on really long modLines in the range dropdown
1542+
-- copy the modLine so we don't actually change the mod, only the display
1543+
local rangeLine = copyTable(modLine)
1544+
rangeLine.line = rangeLine.line:gsub(" Passive Skills in Radius also grant", ":")
1545+
t_insert(self.rangeLineList, rangeLine)
15421546
end
15431547
end
15441548
end

0 commit comments

Comments
 (0)