Skip to content

Transformations

getPlayerTransformations(player): ReadonlySet<PlayerForm>

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

Returns a set of the player’s current transformations.

EntityPlayer

ReadonlySet<PlayerForm>


getTransformationName(playerForm): string

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

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

For example:

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

PlayerForm

string


getTransformationsForCollectibleType(collectibleType): ReadonlySet<PlayerForm>

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

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

CollectibleType

ReadonlySet<PlayerForm>


hasFlyingTransformation(player): boolean

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

EntityPlayer

boolean


isTransformationFlying(playerForm): boolean

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

PlayerForm

boolean