Skip to content

SlotDestructionType

Defined in: packages/isaacscript-common/src/enums/SlotDestructionType.ts:2

This is used in the POST_SLOT_DESTROYED custom callback.

NORMAL: 0

Defined in: packages/isaacscript-common/src/enums/SlotDestructionType.ts:10

When a machine or a beggar is blown up by a bomb or is otherwise removed without spawning a collectible.

Note that the destruction type for a Crane Game will be SlotDestructionType.NORMAL, even if it destroyed via spawning three separate collectibles.

COLLECTIBLE_PAYOUT: 1

Defined in: packages/isaacscript-common/src/enums/SlotDestructionType.ts:18

When a machine or a beggar is removed while spawning a collectible reward.

Note that the destruction type for a Crane Game will be SlotDestructionType.NORMAL, even if it destroyed via spawning three separate collectibles.