Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. local template = RegisterMod( "Template", 1 );
  2.  
  3. function template:PostUpdate()
  4. local game = Game()
  5. local level = game:GetLevel()
  6. local player = Isaac.GetPlayer(0)
  7.  
  8. level:RemoveCurses()
  9.  
  10. if level:GetCurses() == 2 then
  11. player:AddCollectible(260, 0, false)
  12. game:StartStageTransition(true, -1)
  13. print ("XL Swapped")
  14. end
  15. end
  16.  
  17. template:AddCallback( ModCallbacks.MC_POST_UPDATE, template.PostUpdate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement