File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments