From 1abfa30afbb7d838f225959d27c1abbf3cfe5230 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Fri, 26 Nov 2021 20:35:04 -0500 Subject: [PATCH] fix golden trinkets on en_us_detailed --- eid_api.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eid_api.lua b/eid_api.lua index 8fd54bee..5659864d 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -440,8 +440,9 @@ function EID:getObjectName(Type, Variant, SubType) local vanillaName = EID.itemConfig:GetCollectible(SubType).Name return name or (not string.find(vanillaName, "^#") and vanillaName) or EID.descriptions["en_us"][tableName][SubType][2] or vanillaName elseif tableName == "trinkets" then - local vanillaName = EID.itemConfig:GetTrinket(SubType).Name - return name or (not string.find(vanillaName, "^#") and vanillaName) or EID.descriptions["en_us"][tableName][SubType][2] or vanillaName + local adjustedSubtype = EID:getAdjustedSubtype(Type, Variant, SubType) + local vanillaName = EID.itemConfig:GetTrinket(adjustedSubtype).Name + return name or (not string.find(vanillaName, "^#") and vanillaName) or EID.descriptions["en_us"][tableName][adjustedSubtype][2] or vanillaName elseif tableName == "cards" then local vanillaName = EID.itemConfig:GetCard(SubType).Name return name or (not string.find(vanillaName, "^#") and vanillaName) or EID.descriptions["en_us"][tableName][SubType][2] or vanillaName