Skip to main content

Transformations

Functions

getPlayerTransformations

getPlayerTransformations(player): ReadonlySet<PlayerForm>

Returns a set of the player's current transformations.

Parameters

NameType
playerEntityPlayer

Returns

ReadonlySet<PlayerForm>

Defined in

packages/isaacscript-common/src/functions/transformations.ts:35


getTransformationName

getTransformationName(playerForm): string

Helper function to get a transformation name from a PlayerForm enum.

For example:

const transformationName = getTransformationName(PlayerForm.LORD_OF_THE_FLIES);
// transformationName is "Beelzebub"

Parameters

NameType
playerFormPlayerForm

Returns

string

Defined in

packages/isaacscript-common/src/functions/transformations.ts:58


getTransformationsForCollectibleType

getTransformationsForCollectibleType(collectibleType): ReadonlySet<PlayerForm>

Returns a set containing all of the transformations that the given collectible types contribute towards.

Parameters

NameType
collectibleTypeCollectibleType

Returns

ReadonlySet<PlayerForm>

Defined in

packages/isaacscript-common/src/functions/transformations.ts:66


hasFlyingTransformation

hasFlyingTransformation(player): boolean

Parameters

NameType
playerEntityPlayer

Returns

boolean

Defined in

packages/isaacscript-common/src/functions/transformations.ts:86


isTransformationFlying

isTransformationFlying(playerForm): boolean

Parameters

NameType
playerFormPlayerForm

Returns

boolean

Defined in

packages/isaacscript-common/src/functions/transformations.ts:96