epfly6 / RepentanceAPIIssueTracker

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

MC_POST_NEW_ROOM and MC_POST_NEW_LEVEL should pass the room and level we're about to enter #503

Open Foks256 opened 2 years ago

Foks256 commented 2 years ago

So instead of doing this:

mod:AddCallback(ModCallbacks.MC_POST_NEW_ROOM, function()
   local room = Game():GetRoom()

   if room:IsClear() then
      print("nice")
   end
end)

We could do something like this:

mod:AddCallback(ModCallbacks.MC_POST_NEW_ROOM, function(_, room)
   if room:IsClear() then
      print("nice")
   end
end)