Improved Luadocs and fixed some code warnings
This commit is contained in:
1 parent
38fbb8a473
commit
97cbaecc42
4 files changed
+57
-64
No files matched your search
@@ -14,10 +14,8 @@ function EID:TabReleased() return EID.TabHeldLastFrame and not EID.TabHeldThisFr
|
||||
-- List of collectible IDs for us to check if a player owns them; feel free to add to this in mods that add description modifiers!
|
||||
EID.collectiblesToCheck[CollectibleType.COLLECTIBLE_VOID] = true
|
||||
EID.collectiblesToCheck["5.300.41"] = true -- Black Rune
|
||||
local maxSlot = 1
|
||||
-- Repentance modifiers
|
||||
if EID.isRepentance then
|
||||
maxSlot = 3
|
||||
EID.collectiblesToCheck[CollectibleType.COLLECTIBLE_BOOK_OF_VIRTUES] = true
|
||||
EID.collectiblesToCheck[CollectibleType.COLLECTIBLE_SPINDOWN_DICE] = true
|
||||
EID.collectiblesToCheck[CollectibleType.COLLECTIBLE_MOMS_BOX] = true
|
||||
@@ -920,7 +918,7 @@ if EID.isRepentance then
|
||||
local function GlitchedCrownCallback(descObj)
|
||||
if not descObj.Entity or inGlitchedCrown then return descObj end
|
||||
local entity = descObj.Entity
|
||||
local curRoomIndex = game:GetLevel():GetCurrentRoomDesc().ListIndex
|
||||
local curRoomIndex = game:GetLevel():GetCurrentRoomIndex()
|
||||
|
||||
if EID.GlitchedCrownCheck[curRoomIndex] and EID.GlitchedCrownCheck[curRoomIndex][descObj.Entity.InitSeed .. descObj.Entity.Index] then
|
||||
-- this table has collectible ID keys that define the first frame and most recent frame that that ID has been seen on this pedestal
|
||||
|
||||
Reference in new issue
Block a user