Josh64

Revelations compatibility

Feb 20th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. function Mod:onNewStage()
  2.  
  3. -- Revelations compatibility
  4. if StageAPI then
  5. Isaac.ConsoleOutput("It lives")
  6. if StageAPI.CurrentStage then
  7. Isaac.ConsoleOutput("Live!!")
  8. if StageAPI.CurrentStage.Name == "Tomb"
  9. or StageAPI.CurrentStage.Name == "Tomb 2" then
  10. revelation.Floor = true
  11. else
  12. revelation.Floor = false
  13. end
  14. else
  15. revelation.Floor = false
  16. end
  17. else
  18. Isaac.ConsoleOutput("It doesn't live")
  19. end
  20. end
  21. Spikes:AddCallback(ModCallbacks.MC_POST_NEW_LEVEL, Mod.onNewStage)
Advertisement
Add Comment
Please, Sign In to add comment