Skip to content

Slots

getSlotName(slotVariant): string

Defined in: packages/isaacscript-common/src/functions/slots.ts:27

Helper function to get the name of a slot, as listed in the “entities2.xml” file. Returns “Unknown” if the provided slot variant is not valid.

This function only works for vanilla slot variants.

For example, getSlotName(SlotVariant.BLOOD_DONATION_MACHINE) would return “Blood Donation Machine”.

SlotVariant

string


isSlotMachine(entity): boolean

Defined in: packages/isaacscript-common/src/functions/slots.ts:34

Returns true for the specific variants of EntityType.SLOT that are machines.

Entity

boolean