Transformations
Functions
Section titled “Functions”getPlayerTransformations()
Section titled “getPlayerTransformations()”getPlayerTransformations(
player):ReadonlySet<PlayerForm>
Defined in: packages/isaacscript-common/src/functions/transformations.ts:35
Returns a set of the player’s current transformations.
Parameters
Section titled “Parameters”player
Section titled “player”EntityPlayer
Returns
Section titled “Returns”ReadonlySet<PlayerForm>
getTransformationName()
Section titled “getTransformationName()”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"Parameters
Section titled “Parameters”playerForm
Section titled “playerForm”PlayerForm
Returns
Section titled “Returns”string
getTransformationsForCollectibleType()
Section titled “getTransformationsForCollectibleType()”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.
Parameters
Section titled “Parameters”collectibleType
Section titled “collectibleType”CollectibleType
Returns
Section titled “Returns”ReadonlySet<PlayerForm>
hasFlyingTransformation()
Section titled “hasFlyingTransformation()”hasFlyingTransformation(
player):boolean
Defined in: packages/isaacscript-common/src/functions/transformations.ts:86
Parameters
Section titled “Parameters”player
Section titled “player”EntityPlayer
Returns
Section titled “Returns”boolean
isTransformationFlying()
Section titled “isTransformationFlying()”isTransformationFlying(
playerForm):boolean
Defined in: packages/isaacscript-common/src/functions/transformations.ts:96
Parameters
Section titled “Parameters”playerForm
Section titled “playerForm”PlayerForm
Returns
Section titled “Returns”boolean
