ConstantsFirstLast
Constants relating to the first and last value for various vanilla objects.
Variables
Section titled “Variables”FIRST_COLLECTIBLE_TYPE
Section titled “FIRST_COLLECTIBLE_TYPE”
constFIRST_COLLECTIBLE_TYPE:SAD_ONION=CollectibleType.SAD_ONION
Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:23
Equal to CollectibleType.SAD_ONION (1).
LAST_VANILLA_COLLECTIBLE_TYPE
Section titled “LAST_VANILLA_COLLECTIBLE_TYPE”
constLAST_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.
NUM_VANILLA_COLLECTIBLE_TYPES
Section titled “NUM_VANILLA_COLLECTIBLE_TYPES”
constNUM_VANILLA_COLLECTIBLE_TYPES:number
Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:35
Calculated from the CollectibleType enum. (CollectibleType.NULL is not included.)
FIRST_TRINKET_TYPE
Section titled “FIRST_TRINKET_TYPE”
constFIRST_TRINKET_TYPE:SWALLOWED_PENNY=TrinketType.SWALLOWED_PENNY
Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:42
Equal to TrinketType.SWALLOWED_PENNY (1).
LAST_VANILLA_TRINKET_TYPE
Section titled “LAST_VANILLA_TRINKET_TYPE”
constLAST_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.
NUM_VANILLA_TRINKET_TYPES
Section titled “NUM_VANILLA_TRINKET_TYPES”
constNUM_VANILLA_TRINKET_TYPES:number
Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:53
Calculated from the TrinketType enum. (TrinketType.NULL is not included.)
FIRST_CARD_TYPE
Section titled “FIRST_CARD_TYPE”
constFIRST_CARD_TYPE:FOOL=CardType.FOOL
Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:60
Equal to Card.FOOL (1).
LAST_VANILLA_CARD_TYPE
Section titled “LAST_VANILLA_CARD_TYPE”
constLAST_VANILLA_CARD_TYPE:CardType
Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:63
Calculated from the CardType enum.
NUM_VANILLA_CARD_TYPES
Section titled “NUM_VANILLA_CARD_TYPES”
constNUM_VANILLA_CARD_TYPES:number
Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:66
Calculated from the Card enum. Card.NULL is not included.
FIRST_PILL_EFFECT
Section titled “FIRST_PILL_EFFECT”
constFIRST_PILL_EFFECT:BAD_GAS=PillEffect.BAD_GAS
Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:73
Equal to PillEffect.BAD_GAS (0).
LAST_VANILLA_PILL_EFFECT
Section titled “LAST_VANILLA_PILL_EFFECT”
constLAST_VANILLA_PILL_EFFECT:PillEffect
Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:76
Calculated from the PillEffect enum.
NUM_VANILLA_PILL_EFFECTS
Section titled “NUM_VANILLA_PILL_EFFECTS”
constNUM_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.)
FIRST_PILL_COLOR
Section titled “FIRST_PILL_COLOR”
constFIRST_PILL_COLOR:BLUE_BLUE=PillColor.BLUE_BLUE
Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:89
Equal to PillColor.BLUE_BLUE (1).
LAST_NORMAL_PILL_COLOR
Section titled “LAST_NORMAL_PILL_COLOR”
constLAST_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.
FIRST_HORSE_PILL_COLOR
Section titled “FIRST_HORSE_PILL_COLOR”
constFIRST_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).
LAST_HORSE_PILL_COLOR
Section titled “LAST_HORSE_PILL_COLOR”
constLAST_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.
NUM_NORMAL_PILL_COLORS
Section titled “NUM_NORMAL_PILL_COLORS”
constNUM_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.
FIRST_CHARACTER
Section titled “FIRST_CHARACTER”
constFIRST_CHARACTER:ISAAC=PlayerType.ISAAC
Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:122
Equal to PlayerType.ISAAC (0).
LAST_VANILLA_CHARACTER
Section titled “LAST_VANILLA_CHARACTER”
constLAST_VANILLA_CHARACTER:PlayerType
Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:127
Calculated from the PlayerType enum.
NUM_VANILLA_CHALLENGES
Section titled “NUM_VANILLA_CHALLENGES”
constNUM_VANILLA_CHALLENGES:number
Defined in: packages/isaacscript-common/src/core/constantsFirstLast.ts:134
Calculated from the Challenge enum. Challenge.NULL is not included.
