re-add the Collectible_Flip restriction
This commit is contained in:
1 parent
2280381354
commit
b3bc547cf4
1 file changed
+3
-3
@@ -247,7 +247,7 @@ if REPENTANCE then
|
|||||||
|
|
||||||
local lastGetItemResult = {nil, nil, nil, nil} -- itemID, Frame, gridIndex, InitSeed
|
local lastGetItemResult = {nil, nil, nil, nil} -- itemID, Frame, gridIndex, InitSeed
|
||||||
|
|
||||||
function EID:postGetCollectible(selectedCollectible, itemPoolType, decrease, _)
|
function EID:postGetCollectible(selectedCollectible, itemPoolType, decrease, seed)
|
||||||
-- Handle Crane Game
|
-- Handle Crane Game
|
||||||
if itemPoolType == ItemPoolType.POOL_CRANE_GAME then
|
if itemPoolType == ItemPoolType.POOL_CRANE_GAME then
|
||||||
for _, crane in ipairs(Isaac.FindByType(6, 16, -1, true, false)) do
|
for _, crane in ipairs(Isaac.FindByType(6, 16, -1, true, false)) do
|
||||||
@@ -283,7 +283,7 @@ if REPENTANCE then
|
|||||||
EID:AddCallback(ModCallbacks.MC_POST_GET_COLLECTIBLE, EID.postGetCollectible)
|
EID:AddCallback(ModCallbacks.MC_POST_GET_COLLECTIBLE, EID.postGetCollectible)
|
||||||
|
|
||||||
-- Handle Flip Item spawn
|
-- Handle Flip Item spawn
|
||||||
function EID:preRoomEntitySpawn(entityType, variant, subtype, gridIndex, _)
|
function EID:preRoomEntitySpawn(entityType, variant, subtype, gridIndex, seed)
|
||||||
flipItemNext = false
|
flipItemNext = false
|
||||||
if entityType == 5 and (variant == 100 or variant == 150) then
|
if entityType == 5 and (variant == 100 or variant == 150) then
|
||||||
lastGetItemResult = {nil, Isaac.GetFrameCount(), gridIndex, nil}
|
lastGetItemResult = {nil, Isaac.GetFrameCount(), gridIndex, nil}
|
||||||
@@ -338,7 +338,7 @@ if REPENTANCE then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
EID:AddCallback(ModCallbacks.MC_PRE_USE_ITEM, EID.CheckFlipGridIndexes)
|
EID:AddCallback(ModCallbacks.MC_PRE_USE_ITEM, EID.CheckFlipGridIndexes, CollectibleType.COLLECTIBLE_FLIP)
|
||||||
end
|
end
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in new issue
Block a user