Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Modded trinket support / ex. Mod.AddTrinketCostumes(trinketVar, trinketId, costumeId)
- function AddTrinketCostumes (trinketVar, trinketId, costumeId)
- for i = 0, (game:GetNumPlayers() - 1) do
- local player = Isaac.GetPlayer(i)
- if onPickup == false then -- costume would get applied by smelting the trinket
- if player:GetTrinket(0) ~= trinketId
- and player:GetTrinket(1) ~= trinketId
- and applyCostume == true then -- still follows the same rules as base game trinkets
- player:AddNullCostume(costumeId)
- trinketVar = true
- end
- else -- costume would get applied by picking up the trinket
- player:AddNullCostume(costumeId)
- trinketVar = true
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment