Hold Map description
This commit is contained in:
1 parent
4f92b58968
commit
97030cf390
1 file changed
+23
-2
+23
-2
@@ -62,8 +62,29 @@ function EID:CheckPlayersCollectibles()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function EID:getHoldMapDescription()
|
local holdMapDesc = ""
|
||||||
return "Yo"
|
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
|
end
|
||||||
|
|
||||||
-- Handle description changes that occur while holding Map, and the Hold Map Helper (name pending)
|
-- Handle description changes that occur while holding Map, and the Hold Map Helper (name pending)
|
||||||
|
|||||||
Reference in new issue
Block a user