Dynamic health HealingRed removal list (#725)
HealingRed lines removal for custom health types support
This commit is contained in:
1 parent
9d70dd6aa8
commit
11afa64023
2 files changed
+6
-1
No files matched your search
@@ -338,7 +338,7 @@ local function HealthUpCallback(descObj)
|
||||
|
||||
-- remove HealingRed lines entirely for Soul/Black/None health chars
|
||||
descObj.Description = descObj.Description .. "#" -- gsub finds final lines better if the desc ends with a line break
|
||||
if heartType == "Soul" or heartType == "Black" or heartType == "None" then
|
||||
if EID.HealthTypesWithoutHealing[heartType] then
|
||||
-- Find any lines containing {{HealingRed}} or {{HealingHalfRed}} and remove the line
|
||||
descObj.Description = descObj.Description:gsub("{{HealingRed}}(.-)#", "")
|
||||
descObj.Description = descObj.Description:gsub("{{HealingHalfRed}}(.-)#", "")
|
||||
|
||||
Reference in new issue
Block a user