Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Mod = RegisterMod("CustomTrinketCostumes", 1)
- local game = Game()
- local costume = false
- Mod.COSTUME_BROWN_CAP = Isaac.GetCostumeIdByPath("gfx/characters/miserere_brown_cap.anm2") -- costume
- function Mod:onCostumeUpdate(player)
- if player:HasTrinket(75)
- and not (player:GetTrinket(0) == 75)
- and not (player:GetTrinket(1) == 75)
- and costume == false then
- player:AddNullCostume(Mod.COSTUME_BROWN_CAP) -- add costume
- costume = true
- else
- if not player:HasTrinket(75)
- and costume == true then
- Isaac.ConsoleOutput("Arrrgh")
- player:TryRemoveNullCostume(Mod.COSTUME_BROWN_CAP) -- remove costume
- costume = false
- end
- end
- end
- Mod:AddCallback(ModCallbacks.MC_POST_PEFFECT_UPDATE, Mod.onCostumeUpdate)
Advertisement
Add Comment
Please, Sign In to add comment