From 568b96f85195bbeb58087ea14c95149849eb17a9 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Thu, 22 Aug 2024 08:17:34 -0400 Subject: [PATCH] Health Down / horsepill support --- features/eid_modifiers.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features/eid_modifiers.lua b/features/eid_modifiers.lua index 3a485b5b..07bc6cd0 100644 --- a/features/eid_modifiers.lua +++ b/features/eid_modifiers.lua @@ -312,6 +312,7 @@ end -- Handle changing health up text for non-red HP players local function HealthUpCallback(descObj) local adjustedSubtype = EID:getAdjustedSubtype(descObj.ObjType, descObj.ObjVariant, descObj.ObjSubType) + if descObj.ObjVariant == 70 and descObj.ObjSubType > 2048 then adjustedSubtype = adjustedSubtype + 2048 end -- horsepill exception local typeVarSub = descObj.ObjType.."."..descObj.ObjVariant.."."..adjustedSubtype local closestPlayer = EID:ClosestPlayerTo(descObj.Entity) @@ -322,7 +323,7 @@ local function HealthUpCallback(descObj) -- find/replace Health Up lines local numHearts = EID.HealthUpData[typeVarSub] or 1 local text = EID:getDescriptionEntry("RedToX", "Red to " .. heartType) - local plural = ""; if numHearts ~= 1 then plural = EID:getDescriptionEntry("Pluralize") end + local plural = ""; if numHearts ~= 1 and numHearts ~= -1 then plural = EID:getDescriptionEntry("Pluralize") end local pos = 1 while pos <= #text do