From f7644c9feb9992c93d570637696bdb935d9acad0 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Sun, 13 Nov 2022 00:49:15 -0500 Subject: [PATCH] Mod compatible golden trinket check --- eid_api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eid_api.lua b/eid_api.lua index f17146ad..3631541c 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -507,8 +507,8 @@ end function EID:getAdjustedSubtype(Type, Variant, SubType) local tableName = EID:getTableName(Type, Variant, SubType) if tableName == "trinkets" then - if SubType > 32768 then - return SubType - 32768 + if REPENTANCE then + return (SubType & TrinketType.TRINKET_ID_MASK) end elseif tableName == "sacrifice" then return math.min(#EID.descriptions["en_us"].sacrifice, SubType)