From b6eb67eca1705166a7caa59978900418afc2ef19 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Fri, 14 Jan 2022 14:28:52 -0500 Subject: [PATCH] Fix Current + English issues --- main.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 46a615af..ea1ab76a 100644 --- a/main.lua +++ b/main.lua @@ -354,10 +354,15 @@ function EID:printDescription(desc) EID.Config["Language"] = curLanguage if EID.Config["TranslateItemName"] == 1 then curName = englishName - elseif EID.Config["TranslateItemName"] == 3 and curName ~= englishName then + elseif EID.Config["TranslateItemName"] == 3 and curName ~= englishName and not EID.isDisplayingPermanent then curName = curName.." ("..englishName..")" end end + -- Display Entity ID + if EID.Config["ShowObjectID"] and desc.ObjType > 0 then + curName = curName.." {{ColorGray}}"..desc.ObjType.."."..desc.ObjVariant.."."..desc.ObjSubType + end + -- Display Quality if REPENTANCE and EID.Config["ShowQuality"] and desc.ObjVariant == PickupVariant.PICKUP_COLLECTIBLE then local quality = tonumber(EID.itemConfig:GetCollectible(tonumber(desc.ObjSubType)).Quality) curName = curName.." - {{Quality"..quality.."}}" @@ -865,7 +870,7 @@ local function onRender(t) --Handle Glitched Items if closest.Type == 5 and closest.Variant == 100 and closest.SubType > 4294960000 then - local glitchedObj = EID.getDescriptionObj(closest.Type, closest.Variant, closest.SubType) + local glitchedObj = EID:getDescriptionObj(closest.Type, closest.Variant, closest.SubType) local glitchedDesc = EID:getXMLDescription(closest.Type, closest.Variant, closest.SubType) -- force the default glitchy description if option is off