epfly6 / RepentanceAPIIssueTracker

An unofficial issue tracker for issues with The Binding of Isaac: Repentance's API.
20 stars 1 forks source link

Cannot skip boss versus screen by returning true in MC_INPUT_ACTION #537

Open Cuerzor opened 2 years ago

Cuerzor commented 2 years ago

Also this boss versus screen will always make the online co-op desync

catinsurance commented 1 year ago

I cannot replicate this, it works perfectly fine on my end. Tested with the code below:

local TestMod = RegisterMod("Test Mod", 1)

local attemptSkip = false
function TestMod:InputSkip(_, hook, action)
    if hook == InputHook.IS_ACTION_TRIGGERED then
        if attemptSkip and action == ButtonAction.ACTION_MENUCONFIRM then
            attemptSkip = false
            print("Skipped!")
            return true
        end
    end
end

TestMod:AddCallback(ModCallbacks.MC_INPUT_ACTION, TestMod.InputSkip)

function TestMod:CheckBoss()
    local room = Game():GetRoom()
    if room:GetType() == RoomType.ROOM_BOSS then
        attemptSkip = true
    end
end

TestMod:AddCallback(ModCallbacks.MC_POST_NEW_ROOM, TestMod.CheckBoss)