Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local template = RegisterMod( "Template", 1 );
- function template:PostUpdate()
- local game = Game()
- local level = game:GetLevel()
- local player = Isaac.GetPlayer(0)
- level:RemoveCurses()
- if level:GetCurses() == 2 then
- player:AddCollectible(260, 0, false)
- game:StartStageTransition(true, -1)
- print ("XL Swapped")
- end
- end
- template:AddCallback( ModCallbacks.MC_POST_UPDATE, template.PostUpdate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement