Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Mod = RegisterMod("Mod", 1)
- local game = Game()
- -- checks if the game started and adds one of the orignal 125 Trinkets to the player. Does not use the run seed.
- function Mod:onPlayerInit(player)
- if game:GetFrameCount() == 1 then
- local player = Isaac.GetPlayer(0)
- local trinket = math.random(125)
- player:ToPlayer():AddTrinket(TrinketType.trinket)
- end
- end
- Mod:AddCallback(ModCallbacks.MC_POST_PLAYER_INIT, Mod.onPlayerInit)
Add Comment
Please, Sign In to add comment