Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mod = RegisterMod("Finn's Ipecac",1)
- local smbmode = Isaac.GetItemIdByName("SMB Mode")
- local collecteditem = false
- function mod:convertCoins()
- local player = Isaac.GetPlayer(0)
- if player:HasCollectible(smbmode) and collecteditem == false then
- local smbcostume = Isaac.GetCostumeIdByPath("gfx/characters/smbmode.anm2")
- player:AddNullCostume(smbcostume)
- collecteditem = true
- end
- if player:GetNumCoins() >= 99 and player:HasCollectible(smbmode) then
- player:AddCoins(-99)
- player:AddCollectible(CollectibleType.COLLECTIBLE_ONE_UP,0,true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement