Mod compatible golden trinket check
This commit is contained in:
1 parent
2ed1d57fe1
commit
f7644c9feb
1 file changed
+2
-2
+2
-2
@@ -507,8 +507,8 @@ end
|
|||||||
function EID:getAdjustedSubtype(Type, Variant, SubType)
|
function EID:getAdjustedSubtype(Type, Variant, SubType)
|
||||||
local tableName = EID:getTableName(Type, Variant, SubType)
|
local tableName = EID:getTableName(Type, Variant, SubType)
|
||||||
if tableName == "trinkets" then
|
if tableName == "trinkets" then
|
||||||
if SubType > 32768 then
|
if REPENTANCE then
|
||||||
return SubType - 32768
|
return (SubType & TrinketType.TRINKET_ID_MASK)
|
||||||
end
|
end
|
||||||
elseif tableName == "sacrifice" then
|
elseif tableName == "sacrifice" then
|
||||||
return math.min(#EID.descriptions["en_us"].sacrifice, SubType)
|
return math.min(#EID.descriptions["en_us"].sacrifice, SubType)
|
||||||
|
|||||||
Reference in new issue
Block a user