From 9210158b64a5090664f7842b05192f55ebf8cab4 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Fri, 14 Jan 2022 01:57:20 -0500 Subject: [PATCH] Add Glitched Item handling --- main.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/main.lua b/main.lua index 7f0e4e30..fe486372 100644 --- a/main.lua +++ b/main.lua @@ -812,6 +812,23 @@ local function onRender(t) return end + --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 glitchedDesc = EID:getXMLDescription(closest.Type, closest.Variant, closest.SubType) + + -- force the default glitchy description if option is off + if not EID.Config["DisplayGlitchedItemInfo"] then + glitchedObj.Description = glitchedDesc + -- grab the Item Config info if eid_tmtrainer.lua hasn't taken care of it + elseif not debug then + glitchedObj.Description = EID:CheckGlitchedItemConfig(closest.SubType) .. glitchedDesc + end + + EID:printDescription(glitchedObj) + return + end + if closest.Type == 1000 and closest.Variant == 76 then EID:printDescription(EID:getDescriptionObj(closest.Type, closest.Variant, closest.SubType+1)) return