From 363499742301c2a7d9ebaf427d64d9f5f801a82c Mon Sep 17 00:00:00 2001 From: Buurazu Date: Mon, 6 Jun 2022 13:45:30 -0400 Subject: [PATCH] Moved to its own file --- eid_modifiers.lua | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/eid_modifiers.lua b/eid_modifiers.lua index 1d0779b9..70a8d83e 100644 --- a/eid_modifiers.lua +++ b/eid_modifiers.lua @@ -62,32 +62,7 @@ function EID:CheckPlayersCollectibles() end end -local holdMapDesc = "" -local function appendToMapDesc(icon, title, newDesc) - holdMapDesc = holdMapDesc .. "#" .. (icon or "{{Blank}}") .. " {{ColorEIDObjName}}" .. title .. "#" .. newDesc -end - -function EID:getHoldMapDescription(player) - holdMapDesc = "" - - -- Tainted ??? Poop Preview - local nextPoop = player:GetPoopSpell(0) - if player:GetPoopMana() > 0 then - local poopInfo = EID:getDescriptionEntry("poopSpells") - appendToMapDesc(nil, poopInfo[nextPoop][1], poopInfo[nextPoop][2]) - end - - -- Active Item Description - local heldActive = player:GetActiveItem() - if heldActive > 0 then - local demoDescObj = EID:getDescriptionObj(5, 100, heldActive) - appendToMapDesc("{{Collectible"..heldActive.."}}", demoDescObj.Name, demoDescObj.Description) - end - - return holdMapDesc -end - --- Handle description changes that occur while holding Map, and the Hold Map Helper (name pending) +-- Handle description changes that occur while holding Map local function TabCallback(descObj) if EID.TabPreviewID == 0 then return descObj end EID.TabDescThisFrame = true