Merge branch 'wofsauge:master' into master
This commit is contained in:
2 files changed
+6
-1
No files matched your search
@@ -1063,6 +1063,11 @@ if EID.isRepentance then
|
|||||||
EID.CharacterToHeartType[12] = "Black"; EID.CharacterToHeartType[24] = "Black"; EID.CharacterToHeartType[25] = "Soul"; EID.CharacterToHeartType[31] = "None"; EID.CharacterToHeartType[33] = "Coin"; EID.CharacterToHeartType[35] = "Soul"; EID.CharacterToHeartType[36] = "Soul"; EID.CharacterToHeartType[40] = "Soul";
|
EID.CharacterToHeartType[12] = "Black"; EID.CharacterToHeartType[24] = "Black"; EID.CharacterToHeartType[25] = "Soul"; EID.CharacterToHeartType[31] = "None"; EID.CharacterToHeartType[33] = "Coin"; EID.CharacterToHeartType[35] = "Soul"; EID.CharacterToHeartType[36] = "Soul"; EID.CharacterToHeartType[40] = "Soul";
|
||||||
end
|
end
|
||||||
|
|
||||||
|
EID.HealthTypesWithoutHealing = {}
|
||||||
|
EID.HealthTypesWithoutHealing["Soul"] = true
|
||||||
|
EID.HealthTypesWithoutHealing["Black"] = true
|
||||||
|
EID.HealthTypesWithoutHealing["None"] = true
|
||||||
|
|
||||||
-- Character IDs that have a pocket active (0 = normal, 1 = timed, 2 = special)
|
-- Character IDs that have a pocket active (0 = normal, 1 = timed, 2 = special)
|
||||||
EID.PocketActivePlayerIDs = { [22] = 0, [23] = 2, [24] = 1, [25] = 2, [26] = 1, [29] = 0, [34] = 0, [36] = 0, [37] = 1, [38] = 0, [39] = 1 }
|
EID.PocketActivePlayerIDs = { [22] = 0, [23] = 2, [24] = 1, [25] = 2, [26] = 1, [29] = 0, [34] = 0, [36] = 0, [37] = 1, [38] = 0, [39] = 1 }
|
||||||
|
|
||||||
|
|||||||
@@ -338,7 +338,7 @@ local function HealthUpCallback(descObj)
|
|||||||
|
|
||||||
-- remove HealingRed lines entirely for Soul/Black/None health chars
|
-- 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
|
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
|
-- Find any lines containing {{HealingRed}} or {{HealingHalfRed}} and remove the line
|
||||||
descObj.Description = descObj.Description:gsub("{{HealingRed}}(.-)#", "")
|
descObj.Description = descObj.Description:gsub("{{HealingRed}}(.-)#", "")
|
||||||
descObj.Description = descObj.Description:gsub("{{HealingHalfRed}}(.-)#", "")
|
descObj.Description = descObj.Description:gsub("{{HealingHalfRed}}(.-)#", "")
|
||||||
|
|||||||
Reference in new issue
Block a user