Made golden trinkets compatible with description modifiers

This commit is contained in:
Wofsauge committed 2021-06-05 01:57:00 +02:00
1 parent 009da2d876
commit c6215f624f
3 files changed
+20 -11

No files matched your search

-9
View File
@@ -559,16 +559,7 @@ local function onRender(t)
if closest.Variant == PickupVariant.PICKUP_TRINKET then
--Handle Trinkets
local trinketID = closest.SubType
local isGoldenTrinket = false
if trinketID > 32768 then
trinketID = trinketID - 32768
isGoldenTrinket = true
end
local descriptionObj = EID:getDescriptionObj(closest.Type, closest.Variant, trinketID)
if isGoldenTrinket then
local goldenDesc = EID:getDescriptionEntry("goldenTrinket") or ""
descriptionObj.Description = "{{ColorGold}}"..goldenDesc.."#"..descriptionObj.Description
end
EID:printDescription(descriptionObj)
elseif closest.Variant == PickupVariant.PICKUP_COLLECTIBLE then
--Handle Collectibles