Mod compatible golden trinket check

This commit is contained in:
Buurazu authored and GitHub committed 2022-11-13 00:49:15 -05:00
1 parent 2ed1d57fe1
commit f7644c9feb
1 file changed
+2 -2
+2 -2
View File
@@ -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)