Transformations
Functions
getPlayerTransformations
▸ getPlayerTransformations(player): ReadonlySet<PlayerForm>
Returns a set of the player's current transformations.
Parameters
| Name | Type |
|---|---|
player | EntityPlayer |
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
| Name | Type |
|---|---|
playerForm | PlayerForm |
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
| Name | Type |
|---|---|
collectibleType | CollectibleType |
Returns
ReadonlySet<PlayerForm>
Defined in
packages/isaacscript-common/src/functions/transformations.ts:66
hasFlyingTransformation
▸ hasFlyingTransformation(player): boolean
Parameters
| Name | Type |
|---|---|
player | EntityPlayer |
Returns
boolean
Defined in
packages/isaacscript-common/src/functions/transformations.ts:86
isTransformationFlying
▸ isTransformationFlying(playerForm): boolean
Parameters
| Name | Type |
|---|---|
playerForm | PlayerForm |
Returns
boolean
Defined in
packages/isaacscript-common/src/functions/transformations.ts:96