ConstantsVanilla
Constants relating to collections for various vanilla objects.
Variables
Section titled “Variables”VANILLA_COLLECTIBLE_TYPE_RANGE
Section titled “VANILLA_COLLECTIBLE_TYPE_RANGE”
constVANILLA_COLLECTIBLE_TYPE_RANGE: readonlyint[]
Defined in: packages/isaacscript-common/src/core/constantsVanilla.ts:44
An array that represents the range from the first vanilla collectible type to the last vanilla collectible type. This will include integers that do not represent any valid collectible types.
This function is only useful when building collectible type objects. For most purposes, you
should use the VANILLA_COLLECTIBLE_TYPES or VANILLA_COLLECTIBLE_TYPES_SET constants instead.
VANILLA_COLLECTIBLE_TYPES
Section titled “VANILLA_COLLECTIBLE_TYPES”
constVANILLA_COLLECTIBLE_TYPES: readonlyCollectibleType[]
Defined in: packages/isaacscript-common/src/core/constantsVanilla.ts:57
An array that contains every valid vanilla collectible type, as verified by the
ItemConfig.GetCollectible method. Vanilla collectible types are not contiguous, so every valid
must be verified. (There are several gaps, e.g. 666.)
If you need to do O(1) lookups, use the VANILLA_COLLECTIBLE_TYPES_SET constant instead.
VANILLA_COLLECTIBLE_TYPES_SET
Section titled “VANILLA_COLLECTIBLE_TYPES_SET”
constVANILLA_COLLECTIBLE_TYPES_SET:ReadonlySet<CollectibleType>
Defined in: packages/isaacscript-common/src/core/constantsVanilla.ts:69
A set that contains every valid vanilla collectible type, as verified by the
ItemConfig.GetCollectible method. Vanilla collectible types are not contiguous, so every valid
must be verified. (There are several gaps, e.g. 666.)
VANILLA_TRINKET_TYPE_RANGE
Section titled “VANILLA_TRINKET_TYPE_RANGE”
constVANILLA_TRINKET_TYPE_RANGE: readonlyint[]
Defined in: packages/isaacscript-common/src/core/constantsVanilla.ts:84
An array that represents the range from the first vanilla trinket type to the last vanilla trinket type. This will include integers that do not represent any valid trinket types.
This function is only useful when building trinket type objects. For most purposes, you should
use the VANILLA_TRINKET_TYPES or VANILLA_TRINKET_TYPES_SET constants instead.
VANILLA_TRINKET_TYPES
Section titled “VANILLA_TRINKET_TYPES”
constVANILLA_TRINKET_TYPES: readonlyTrinketType[]
Defined in: packages/isaacscript-common/src/core/constantsVanilla.ts:97
An array that contains every valid vanilla trinket type, as verified by the
ItemConfig.GetTrinket method. Vanilla trinket types are not contiguous, so every valid must be
verified. (The only gap is 47 for POLAROID_OBSOLETE.)
If you need to do O(1) lookups, use the VANILLA_TRINKET_TYPES_SET constant instead.
VANILLA_TRINKET_TYPES_SET
Section titled “VANILLA_TRINKET_TYPES_SET”
constVANILLA_TRINKET_TYPES_SET:ReadonlySet<TrinketType>
Defined in: packages/isaacscript-common/src/core/constantsVanilla.ts:109
A set that contains every valid vanilla trinket type, as verified by the ItemConfig.GetTrinket
method. Vanilla trinket types are not contiguous, so every valid must be verified. (The only gap
is 47 for POLAROID_OBSOLETE.)
VANILLA_CARD_TYPE_RANGE
Section titled “VANILLA_CARD_TYPE_RANGE”
constVANILLA_CARD_TYPE_RANGE: readonlyint[]
Defined in: packages/isaacscript-common/src/core/constantsVanilla.ts:122
An array that represents the range from the first vanilla card type to the last vanilla card type.
This function is only useful when building card type objects. For most purposes, you should use
the VANILLA_CARD_TYPES or VANILLA_CARD_TYPES_SET constants instead.
VANILLA_CARD_TYPES
Section titled “VANILLA_CARD_TYPES”
constVANILLA_CARD_TYPES: readonlyCardType[]
Defined in: packages/isaacscript-common/src/core/constantsVanilla.ts:134
An array that contains every valid vanilla card type, as verified by the ItemConfig.GetCard
method. Vanilla card types are contiguous, but we validate every entry to double check.
If you need to do O(1) lookups, use the VANILLA_CARD_TYPES_SET constant instead.
VANILLA_CARD_TYPES_SET
Section titled “VANILLA_CARD_TYPES_SET”
constVANILLA_CARD_TYPES_SET:ReadonlySet<CardType>
Defined in: packages/isaacscript-common/src/core/constantsVanilla.ts:145
A set that contains every valid vanilla card type, as verified by the ItemConfig.GetCard
method. Vanilla card types are contiguous, but we validate every entry to double check.
VANILLA_PILL_EFFECT_RANGE
Section titled “VANILLA_PILL_EFFECT_RANGE”
constVANILLA_PILL_EFFECT_RANGE: readonlyint[]
Defined in: packages/isaacscript-common/src/core/constantsVanilla.ts:158
An array that represents the range from the first vanilla pill effect to the last vanilla pill effect.
This function is only useful when building pill effect objects. For most purposes, you should use
the VANILLA_PILL_EFFECTS or VANILLA_PILL_EFFECTS_SET constants instead.
VANILLA_PILL_EFFECTS
Section titled “VANILLA_PILL_EFFECTS”
constVANILLA_PILL_EFFECTS: readonlyPillEffect[]
Defined in: packages/isaacscript-common/src/core/constantsVanilla.ts:171
An array that contains every valid vanilla pill effect, as verified by the
ItemConfig.GetPillEffect method. Vanilla pill effects are contiguous, but we validate every
entry to double check.
If you need to do O(1) lookups, use the VANILLA_PILL_EFFECT_SET constant instead.
VANILLA_PILL_EFFECTS_SET
Section titled “VANILLA_PILL_EFFECTS_SET”
constVANILLA_PILL_EFFECTS_SET:ReadonlySet<PillEffect>
Defined in: packages/isaacscript-common/src/core/constantsVanilla.ts:183
A set that contains every valid vanilla pill effect, as verified by the
ItemConfig.GetPillEffect method. Vanilla pill effects are contiguous, but we validate every
entry to double check.
