Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function MadnessAsUsual:nuclearAttack(_Type, RNG)
- for i, entity in pairs(Isaac.GetRoomEntities()) do
- if entity:IsVulnerableEnemy() then
- local EntityPos = entity.Position
- Isaac.Spawn(EntityType.ENTITY_BOMBDROP, BombVariant.BOMB_NORMAL, BombSubType.BOMB_NORMAL, EntityPos, Vector(0,0), player)
- end
- end
- for j, entity in pairs(Isaac.GetRoomEntities()) do
- if entity == EntityBomb then
- EntityBomb.IsFetus = true
- end
- end
- end
- MadnessAsUsual:AddCallback(ModCallbacks.MC_USE_ITEM, MadnessAsUsual.nuclearAttack, ActiveIds.EAS_GENERATOR_ID)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement