Skip to content

ConstantsFirstLast

Constants relating to the first and last value for various vanilla objects.

const FIRST_COLLECTIBLE_TYPE: SAD_ONION = CollectibleType.SAD_ONION

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:23

Equal to CollectibleType.SAD_ONION (1).


const LAST_VANILLA_COLLECTIBLE_TYPE: CollectibleType

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:31

Calculated from the CollectibleType enum.

Note that this cannot be calculated from the length of the enum, because collectible types are not contiguous.


const NUM_VANILLA_COLLECTIBLE_TYPES: number

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:35

Calculated from the CollectibleType enum. (CollectibleType.NULL is not included.)


const FIRST_TRINKET_TYPE: SWALLOWED_PENNY = TrinketType.SWALLOWED_PENNY

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:42

Equal to TrinketType.SWALLOWED_PENNY (1).


const LAST_VANILLA_TRINKET_TYPE: TrinketType

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:50

Calculated from the TrinketType enum.

Note that this cannot be calculated from the length of the enum, because trinket types are not contiguous.


const NUM_VANILLA_TRINKET_TYPES: number

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:53

Calculated from the TrinketType enum. (TrinketType.NULL is not included.)


const FIRST_CARD_TYPE: FOOL = CardType.FOOL

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:60

Equal to Card.FOOL (1).


const LAST_VANILLA_CARD_TYPE: CardType

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:63

Calculated from the CardType enum.


const NUM_VANILLA_CARD_TYPES: number

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:66

Calculated from the Card enum. Card.NULL is not included.


const FIRST_PILL_EFFECT: BAD_GAS = PillEffect.BAD_GAS

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:73

Equal to PillEffect.BAD_GAS (0).


const LAST_VANILLA_PILL_EFFECT: PillEffect

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:76

Calculated from the PillEffect enum.


const NUM_VANILLA_PILL_EFFECTS: int

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:82

Calculated from the PillEffect enum. (There is no PillEffect.NULL in the custom enum, so we do not have to subtract one here.)


const FIRST_PILL_COLOR: BLUE_BLUE = PillColor.BLUE_BLUE

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:89

Equal to PillColor.BLUE_BLUE (1).


const LAST_NORMAL_PILL_COLOR: WHITE_YELLOW = PillColor.WHITE_YELLOW

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:97

Equal to PillColor.WHITE_YELLOW (13).

Note that PillColor.GOLD is technically higher, but that is not considered for the purposes of this constant.


const FIRST_HORSE_PILL_COLOR: HORSE_BLUE_BLUE = PillColor.HORSE_BLUE_BLUE

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:100

Equal to PillColor.HORSE_BLUE_BLUE (2049).


const LAST_HORSE_PILL_COLOR: HORSE_WHITE_YELLOW = PillColor.HORSE_WHITE_YELLOW

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:108

Equal to PillColor.HORSE_WHITE_YELLOW (2061).

Note that PillColor.HORSE_GOLD is technically higher, but that is not considered for the purposes of this constant.


const NUM_NORMAL_PILL_COLORS: number

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:114

Calculated from the difference between the first pill color and the last pill color. This does not include Gold Pills. In Repentance, this should be equal to 13.


const FIRST_CHARACTER: ISAAC = PlayerType.ISAAC

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:122

Equal to PlayerType.ISAAC (0).


const LAST_VANILLA_CHARACTER: PlayerType

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:127

Calculated from the PlayerType enum.


const NUM_VANILLA_CHALLENGES: number

Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:134

Calculated from the Challenge enum. Challenge.NULL is not included.