Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local BaptizedWater = RegisterMod("BaptizedWater", 1)
- local game = Game()
- BaptizedWater.COLLECTIBLE_BAPTIZED_WATER = Isaac.GetItemIdByName("Baptized Water")
- function BaptizedWater:onUpdate(player)
- -- Beginning run initialization
- if game:GetFrameCount() == 1 then
- BaptizedWater.HasBaptizedWater = false -- what does this do?
- end
- end
- BaptizedWater:AddCallback(ModCallbacks.MC_POST_PEFFECT_UPDATE, BaptizedWater.onUpdate)
- function BaptizedWater:onDeath(entity)
- local player = Isaac.GetPlayer(0)
- -- Creation of spiders
- if player:HasCollectible(BaptizedWater.COLLECTIBLE_BAPTIZED_WATER) then
- Isaac.Spawn(EntityType.ENTITY_FAMILIAR, FamiliarVariant.BLUE_SPIDER, 0 entity.Position, entity.Velocity, nil)
- Isaac.ConsoleOutput("The cleansing has begun!")
- end
- end
- BaptizedWater:AddCallback(ModCallbacks.MC_POST_NPC_DEATH, BaptizedWater.onDeath)
Add Comment
Please, Sign In to add comment