Skip to content

Commit ccbcef3

Browse files
authored
Clean up Against the Darkness variant names (#160)
* add space in between the words of the Against the Darkness mods, remove unnecessary gsub * sort by name
1 parent d91f4fe commit ccbcef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/Uniques/Special/Generated.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ do
1616
for modName, mod in pairs(uniqueMods) do
1717
local name = modName:match("^UniqueJewelRadius(.+)$")
1818
if name then
19-
table.insert(againstMods, { mod = mod, name = name:gsub("UniqueJewelRadius", ""):gsub("Strenth", "Strength") })
19+
table.insert(againstMods, { mod = mod, name = name:gsub("([a-z])([A-Z])", "%1 %2"):gsub("Strenth", "Strength") })
2020
end
2121
end
22-
table.sort(againstMods, function(a, b) return a.mod.statOrder[1] > b.mod.statOrder[1] end)
22+
table.sort(againstMods, function(a, b) return a.name < b.name end)
2323
local against = {
2424
"Against the Darkness",
2525
"Time-Lost Diamond",

0 commit comments

Comments
 (0)