Skip to content

Commit 2d2950c

Browse files
authored
Fix Heart of the Well modifier names (#1276)
1 parent 8346cb1 commit 2d2950c

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

src/Data/Uniques/Special/Generated.lua

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,18 @@ do
176176
for modName, mod in pairs(veiledMods) do
177177
local name = modName:match("^UniqueHeart(.+)$")
178178
if name then
179-
table.insert(heartMods, {
180-
mod = mod,
181-
name = name
182-
:gsub("([a-z])([A-Z])", "%1 %2")
183-
:gsub("(%d+)([A-Za-z])", " %1 %2") -- separate numbers from letters after
184-
:gsub("([A-Za-z])(%d+)", "%1 %2") -- separate letters from numbers before
179+
local displayName = name
180+
:gsub("([a-z])([A-Z])", "%1 %2")
181+
:gsub("(%d+)([A-Za-z])", " %1 %2") -- separate numbers from letters after
182+
:gsub("([A-Za-z])(%d+)", "%1 %2") -- separate letters from numbers before
183+
-- Hacky replacement as the Mod names don't match the stat type.
184+
:gsub("Gained As Lightning", "__TEMP_LIGHTNING__")
185+
:gsub("Gained As Chaos", "Gained As Lightning")
186+
:gsub("Gained As Cold", "Gained As Chaos")
187+
:gsub("__TEMP_LIGHTNING__", "Gained As Cold")
188+
table.insert(heartMods, {
189+
mod = mod,
190+
name = displayName
185191
})
186192
end
187193
end

0 commit comments

Comments
 (0)