Skip to main content

Constants (First & Last)

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

Variables

FIRST_COLLECTIBLE_TYPE

Const FIRST_COLLECTIBLE_TYPE: SAD_ONION = CollectibleType.SAD_ONION

Equal to CollectibleType.SAD_ONION (1).

Defined in

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


LAST_VANILLA_COLLECTIBLE_TYPE

Const LAST_VANILLA_COLLECTIBLE_TYPE: CollectibleType

Calculated from the CollectibleType enum.

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

Defined in

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


NUM_VANILLA_COLLECTIBLE_TYPES

Const NUM_VANILLA_COLLECTIBLE_TYPES: number

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

Defined in

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


FIRST_TRINKET_TYPE

Const FIRST_TRINKET_TYPE: SWALLOWED_PENNY = TrinketType.SWALLOWED_PENNY

Equal to TrinketType.SWALLOWED_PENNY (1).

Defined in

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


LAST_VANILLA_TRINKET_TYPE

Const LAST_VANILLA_TRINKET_TYPE: TrinketType

Calculated from the TrinketType enum.

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

Defined in

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


NUM_VANILLA_TRINKET_TYPES

Const NUM_VANILLA_TRINKET_TYPES: number

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

Defined in

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


FIRST_CARD_TYPE

Const FIRST_CARD_TYPE: FOOL = CardType.FOOL

Equal to Card.FOOL (1).

Defined in

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


LAST_VANILLA_CARD_TYPE

Const LAST_VANILLA_CARD_TYPE: CardType

Calculated from the CardType enum.

Defined in

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


NUM_VANILLA_CARD_TYPES

Const NUM_VANILLA_CARD_TYPES: number

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

Defined in

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


FIRST_PILL_EFFECT

Const FIRST_PILL_EFFECT: BAD_GAS = PillEffect.BAD_GAS

Equal to PillEffect.BAD_GAS (0).

Defined in

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


LAST_VANILLA_PILL_EFFECT

Const LAST_VANILLA_PILL_EFFECT: PillEffect

Calculated from the PillEffect enum.

Defined in

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


NUM_VANILLA_PILL_EFFECTS

Const NUM_VANILLA_PILL_EFFECTS: int

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

Defined in

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


FIRST_PILL_COLOR

Const FIRST_PILL_COLOR: BLUE_BLUE = PillColor.BLUE_BLUE

Equal to PillColor.BLUE_BLUE (1).

Defined in

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


LAST_NORMAL_PILL_COLOR

Const LAST_NORMAL_PILL_COLOR: WHITE_YELLOW = PillColor.WHITE_YELLOW

Equal to PillColor.WHITE_YELLOW (13).

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

Defined in

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


FIRST_HORSE_PILL_COLOR

Const FIRST_HORSE_PILL_COLOR: HORSE_BLUE_BLUE = PillColor.HORSE_BLUE_BLUE

Equal to PillColor.HORSE_BLUE_BLUE (2049).

Defined in

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


LAST_HORSE_PILL_COLOR

Const LAST_HORSE_PILL_COLOR: HORSE_WHITE_YELLOW = PillColor.HORSE_WHITE_YELLOW

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.

Defined in

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


NUM_NORMAL_PILL_COLORS

Const NUM_NORMAL_PILL_COLORS: number

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.

Defined in

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


FIRST_CHARACTER

Const FIRST_CHARACTER: ISAAC = PlayerType.ISAAC

Equal to PlayerType.ISAAC (0).

Defined in

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


LAST_VANILLA_CHARACTER

Const LAST_VANILLA_CHARACTER: PlayerType

Calculated from the PlayerType enum.

Defined in

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


NUM_VANILLA_CHALLENGES

Const NUM_VANILLA_CHALLENGES: number

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

Defined in

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