Made golden trinkets compatible with description modifiers
This commit is contained in:
1 parent
009da2d876
commit
c6215f624f
3 files changed
+20
-11
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user