isaacscript-common 2.0.13 → 2.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/callbacks/subscriptions/postBombInitLate.d.ts +1 -1
  2. package/dist/callbacks/subscriptions/postCollectibleInitFirst.d.ts +1 -1
  3. package/dist/callbacks/subscriptions/postEffectInitLate.d.ts +1 -1
  4. package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts +1 -1
  5. package/dist/callbacks/subscriptions/postHolyMantleRemoved.d.ts +2 -2
  6. package/dist/callbacks/subscriptions/postItemDischarged.d.ts +2 -2
  7. package/dist/callbacks/subscriptions/postItemPickup.d.ts +1 -1
  8. package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts +1 -1
  9. package/dist/callbacks/subscriptions/postLaserInitLate.d.ts +1 -1
  10. package/dist/callbacks/subscriptions/postNPCInitLate.d.ts +1 -1
  11. package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts +1 -1
  12. package/dist/callbacks/subscriptions/postPEffectUpdateReordered.d.ts +2 -2
  13. package/dist/callbacks/subscriptions/postPickupCollect.d.ts +1 -1
  14. package/dist/callbacks/subscriptions/postPickupInitLate.d.ts +1 -1
  15. package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts +1 -1
  16. package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts +1 -1
  17. package/dist/callbacks/subscriptions/postPurchase.d.ts +1 -1
  18. package/dist/callbacks/subscriptions/postTearInitLate.d.ts +1 -1
  19. package/dist/callbacks/subscriptions/postTearInitVeryLate.d.ts +1 -1
  20. package/dist/callbacks/subscriptions/postTrinketBreak.d.ts +2 -2
  21. package/dist/callbacks/subscriptions/preItemPickup.d.ts +1 -1
  22. package/dist/constants.d.ts +16 -7
  23. package/dist/constants.lua +2 -2
  24. package/dist/features/characterHealthConversion.d.ts +1 -1
  25. package/dist/features/characterStats.d.ts +1 -1
  26. package/dist/features/deployJSONRoom.lua +2 -2
  27. package/dist/features/extraConsoleCommands/commands.d.ts +2 -0
  28. package/dist/features/extraConsoleCommands/commands.lua +14 -0
  29. package/dist/features/extraConsoleCommands/init.lua +1 -0
  30. package/dist/features/preventCollectibleRotate.d.ts +1 -1
  31. package/dist/features/sirenHelpers.d.ts +1 -1
  32. package/dist/functions/boss.d.ts +3 -3
  33. package/dist/functions/cards.d.ts +3 -3
  34. package/dist/functions/character.d.ts +10 -10
  35. package/dist/functions/collectibleCacheFlag.d.ts +2 -2
  36. package/dist/functions/collectibleSet.d.ts +1 -1
  37. package/dist/functions/collectibleTag.d.ts +3 -3
  38. package/dist/functions/collectibles.d.ts +15 -15
  39. package/dist/functions/collectibles.lua +2 -1
  40. package/dist/functions/entity.d.ts +7 -7
  41. package/dist/functions/entitySpecific.d.ts +38 -38
  42. package/dist/functions/familiars.lua +1 -1
  43. package/dist/functions/flying.d.ts +3 -3
  44. package/dist/functions/gridEntity.d.ts +2 -2
  45. package/dist/functions/gridEntity.lua +0 -4
  46. package/dist/functions/level.d.ts +1 -0
  47. package/dist/functions/level.lua +29 -0
  48. package/dist/functions/log.d.ts +2 -2
  49. package/dist/functions/npc.d.ts +1 -1
  50. package/dist/functions/pickups.d.ts +24 -24
  51. package/dist/functions/pills.d.ts +3 -3
  52. package/dist/functions/player.d.ts +24 -17
  53. package/dist/functions/player.lua +20 -9
  54. package/dist/functions/rooms.d.ts +24 -1
  55. package/dist/functions/rooms.lua +56 -21
  56. package/dist/functions/run.d.ts +1 -1
  57. package/dist/functions/spawnCollectible.d.ts +1 -1
  58. package/dist/functions/transformations.d.ts +2 -2
  59. package/dist/functions/trinketCacheFlag.d.ts +2 -2
  60. package/dist/functions/trinketGive.d.ts +2 -2
  61. package/dist/functions/trinketSet.d.ts +1 -1
  62. package/dist/functions/trinkets.d.ts +5 -5
  63. package/dist/functions/trinkets.lua +2 -2
  64. package/dist/index.d.ts +1 -0
  65. package/dist/index.lua +8 -0
  66. package/dist/objects/roomShapeToDoorSlots.d.ts +1 -1
  67. package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +3 -3
  68. package/dist/sets/mineShaftRoomSubTypesSet.d.ts +2 -0
  69. package/dist/sets/mineShaftRoomSubTypesSet.lua +14 -0
  70. package/dist/types/PickingUpItem.d.ts +17 -4
  71. package/dist/types/TrinketSituation.d.ts +3 -3
  72. package/package.json +2 -2
@@ -10,7 +10,7 @@ import { AnyEntity } from "../types/AnyEntity";
10
10
  * @param subType Default is -1. -1 matches every sub-type.
11
11
  * @param ignoreFriendly Default is false.
12
12
  */
13
- export declare function countEntities(entityType?: EntityType | int, variant?: number, subType?: number, ignoreFriendly?: boolean): int;
13
+ export declare function countEntities(entityType?: EntityType, variant?: number, subType?: number, ignoreFriendly?: boolean): int;
14
14
  /**
15
15
  * Given an array of entities, this helper function returns the closest one to a provided reference
16
16
  * entity.
@@ -50,7 +50,7 @@ export declare function getClosestEntityTo<T extends AnyEntity>(referenceEntity:
50
50
  * returned. Default is false. Will only be taken into account if
51
51
  * `matchingEntityType` is specified.
52
52
  */
53
- export declare function getEntities(entityType?: EntityType | int, variant?: number, subType?: number, ignoreFriendly?: boolean): Entity[];
53
+ export declare function getEntities(entityType?: EntityType, variant?: number, subType?: number, ignoreFriendly?: boolean): Entity[];
54
54
  /** Helper function to return a string containing the entity's type, variant, and sub-type. */
55
55
  export declare function getEntityID(entity: Entity): string;
56
56
  /**
@@ -70,7 +70,7 @@ export declare function isEntityMoving(entity: Entity, threshold?: number): bool
70
70
  * Blue Baby, Mega Satan, The Beast, and so on. This is useful because certain effects should only
71
71
  * apply to non-story bosses, like Vanishing Twin. Also see the `STORY_BOSSES` constant.
72
72
  */
73
- export declare function isStoryBoss(entityType: EntityType | int): boolean;
73
+ export declare function isStoryBoss(entityType: EntityType): boolean;
74
74
  /**
75
75
  * Helper function to parse a string that contains an entity type, a variant, and a sub-type,
76
76
  * separated by periods.
@@ -79,7 +79,7 @@ export declare function isStoryBoss(entityType: EntityType | int): boolean;
79
79
  *
80
80
  * Returns undefined if the string cannot be parsed.
81
81
  */
82
- export declare function parseEntityID(entityID: string): [entityType: EntityType | int, variant: int, subType: int] | undefined;
82
+ export declare function parseEntityID(entityID: string): [entityType: EntityType, variant: int, subType: int] | undefined;
83
83
  /**
84
84
  * Helper function to parse a string that contains an entity type and a variant separated by a
85
85
  * period.
@@ -88,7 +88,7 @@ export declare function parseEntityID(entityID: string): [entityType: EntityType
88
88
  *
89
89
  * Returns undefined if the string cannot be parsed.
90
90
  */
91
- export declare function parseEntityTypeVariantString(entityTypeVariantString: string): [entityType: EntityType | int, variant: int] | undefined;
91
+ export declare function parseEntityTypeVariantString(entityTypeVariantString: string): [entityType: EntityType, variant: int] | undefined;
92
92
  /**
93
93
  * Helper function to remove all of the matching entities in the room.
94
94
  *
@@ -123,9 +123,9 @@ export declare function setEntityRandomColor(entity: Entity): void;
123
123
  *
124
124
  * Also see the `spawnWithSeed` helper function.
125
125
  */
126
- export declare function spawn(entityType: EntityType | int, variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): Entity;
126
+ export declare function spawn(entityType: EntityType, variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): Entity;
127
127
  /**
128
128
  * Helper function to spawn an entity. Use this instead of the `Game.Spawn` method if you do not
129
129
  * need to specify the velocity or spawner.
130
130
  */
131
- export declare function spawnWithSeed(entityType: EntityType | int, variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): Entity;
131
+ export declare function spawnWithSeed(entityType: EntityType, variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): Entity;
@@ -12,7 +12,7 @@ import { EntityTypeNonNPC } from "../types/EntityTypeNonNPC";
12
12
  * }
13
13
  * ```
14
14
  */
15
- export declare function getBombs(bombVariant?: BombVariant | int, subType?: number): EntityBomb[];
15
+ export declare function getBombs(bombVariant?: BombVariant, subType?: number): EntityBomb[];
16
16
  /**
17
17
  * Helper function to get all of the `EntityType.EFFECT` in the room.
18
18
  *
@@ -25,7 +25,7 @@ export declare function getBombs(bombVariant?: BombVariant | int, subType?: numb
25
25
  * }
26
26
  * ```
27
27
  */
28
- export declare function getEffects(effectVariant?: EffectVariant | int, subType?: number): EntityEffect[];
28
+ export declare function getEffects(effectVariant?: EffectVariant, subType?: number): EntityEffect[];
29
29
  /**
30
30
  * Helper function to get all of the familiars in the room.
31
31
  *
@@ -38,7 +38,7 @@ export declare function getEffects(effectVariant?: EffectVariant | int, subType?
38
38
  * }
39
39
  * ```
40
40
  */
41
- export declare function getFamiliars(familiarVariant?: FamiliarVariant | int, subType?: number): EntityFamiliar[];
41
+ export declare function getFamiliars(familiarVariant?: FamiliarVariant, subType?: number): EntityFamiliar[];
42
42
  /**
43
43
  * Helper function to get all of the `EntityType.KNIFE` in the room.
44
44
  *
@@ -51,7 +51,7 @@ export declare function getFamiliars(familiarVariant?: FamiliarVariant | int, su
51
51
  * }
52
52
  * ```
53
53
  */
54
- export declare function getKnives(knifeVariant?: KnifeVariant | int, subType?: number): EntityKnife[];
54
+ export declare function getKnives(knifeVariant?: KnifeVariant, subType?: number): EntityKnife[];
55
55
  /**
56
56
  * Helper function to get all of the `EntityType.LASER` in the room.
57
57
  *
@@ -64,9 +64,9 @@ export declare function getKnives(knifeVariant?: KnifeVariant | int, subType?: n
64
64
  * }
65
65
  * ```
66
66
  */
67
- export declare function getLasers(laserVariant?: LaserVariant | int, subType?: number): EntityLaser[];
67
+ export declare function getLasers(laserVariant?: LaserVariant, subType?: number): EntityLaser[];
68
68
  /** The same thing as the `getEntities` function, but returns only NPCs. */
69
- export declare function getNPCs(entityType?: EntityType | int, variant?: int, subType?: int, ignoreFriendly?: boolean): EntityNPC[];
69
+ export declare function getNPCs(entityType?: EntityType, variant?: int, subType?: int, ignoreFriendly?: boolean): EntityNPC[];
70
70
  /**
71
71
  * Helper function to get all of the pickups in the room.
72
72
  *
@@ -79,7 +79,7 @@ export declare function getNPCs(entityType?: EntityType | int, variant?: int, su
79
79
  * }
80
80
  * ```
81
81
  */
82
- export declare function getPickups(pickupVariant?: PickupVariant | int, subType?: number): EntityPickup[];
82
+ export declare function getPickups(pickupVariant?: PickupVariant, subType?: number): EntityPickup[];
83
83
  /**
84
84
  * Helper function to get all of the `EntityType.PROJECTILE` in the room.
85
85
  *
@@ -92,7 +92,7 @@ export declare function getPickups(pickupVariant?: PickupVariant | int, subType?
92
92
  * }
93
93
  * ```
94
94
  */
95
- export declare function getProjectiles(projectileVariant?: ProjectileVariant | int, subType?: number): EntityProjectile[];
95
+ export declare function getProjectiles(projectileVariant?: ProjectileVariant, subType?: number): EntityProjectile[];
96
96
  /**
97
97
  * Helper function to get all of the `EntityType.SLOT` in the room.
98
98
  *
@@ -105,7 +105,7 @@ export declare function getProjectiles(projectileVariant?: ProjectileVariant | i
105
105
  * }
106
106
  * ```
107
107
  */
108
- export declare function getSlots(slotVariant?: SlotVariant | int, subType?: number): Entity[];
108
+ export declare function getSlots(slotVariant?: SlotVariant, subType?: number): Entity[];
109
109
  /**
110
110
  * Helper function to get all of the `EntityType.TEAR` in the room.
111
111
  *
@@ -118,7 +118,7 @@ export declare function getSlots(slotVariant?: SlotVariant | int, subType?: numb
118
118
  * }
119
119
  * ```
120
120
  */
121
- export declare function getTears(tearVariant?: TearVariant | int, subType?: number): EntityTear[];
121
+ export declare function getTears(tearVariant?: TearVariant, subType?: number): EntityTear[];
122
122
  /**
123
123
  * Helper function to remove all of the `EntityType.BOMB` in the room.
124
124
  *
@@ -127,7 +127,7 @@ export declare function getTears(tearVariant?: TearVariant | int, subType?: numb
127
127
  * @param cap Optional. If specified, will only remove the given amount of bombs.
128
128
  * @returns True if one or more bombs were removed, false otherwise.
129
129
  */
130
- export declare function removeAllBombs(bombVariant?: BombVariant | int, subType?: int, cap?: int): boolean;
130
+ export declare function removeAllBombs(bombVariant?: BombVariant, subType?: int, cap?: int): boolean;
131
131
  /**
132
132
  * Helper function to remove all of the effects in the room.
133
133
  *
@@ -136,7 +136,7 @@ export declare function removeAllBombs(bombVariant?: BombVariant | int, subType?
136
136
  * @param cap Optional. If specified, will only remove the given amount of effects.
137
137
  * @returns True if one or more effects were removed, false otherwise.
138
138
  */
139
- export declare function removeAllEffects(effectVariant?: EffectVariant | int, subType?: int, cap?: int): boolean;
139
+ export declare function removeAllEffects(effectVariant?: EffectVariant, subType?: int, cap?: int): boolean;
140
140
  /**
141
141
  * Helper function to remove all of the familiars in the room.
142
142
  *
@@ -146,7 +146,7 @@ export declare function removeAllEffects(effectVariant?: EffectVariant | int, su
146
146
  * @param cap Optional. If specified, will only remove the given amount of familiars.
147
147
  * @returns True if one or more familiars were removed, false otherwise.
148
148
  */
149
- export declare function removeAllFamiliars(familiarVariant?: FamiliarVariant | int, subType?: int, cap?: int): boolean;
149
+ export declare function removeAllFamiliars(familiarVariant?: FamiliarVariant, subType?: int, cap?: int): boolean;
150
150
  /**
151
151
  * Helper function to remove all of the `EntityType.KNIFE` in the room.
152
152
  *
@@ -155,7 +155,7 @@ export declare function removeAllFamiliars(familiarVariant?: FamiliarVariant | i
155
155
  * @param cap Optional. If specified, will only remove the given amount of knives.
156
156
  * @returns True if one or more knives were removed, false otherwise.
157
157
  */
158
- export declare function removeAllKnives(knifeVariant?: KnifeVariant | int, subType?: int, cap?: int): boolean;
158
+ export declare function removeAllKnives(knifeVariant?: KnifeVariant, subType?: int, cap?: int): boolean;
159
159
  /**
160
160
  * Helper function to remove all of the `EntityType.LASER` in the room.
161
161
  *
@@ -164,7 +164,7 @@ export declare function removeAllKnives(knifeVariant?: KnifeVariant | int, subTy
164
164
  * @param cap Optional. If specified, will only remove the given amount of lasers.
165
165
  * @returns True if one or more lasers were removed, false otherwise.
166
166
  */
167
- export declare function removeAllLasers(laserVariant?: LaserVariant | int, subType?: int, cap?: int): boolean;
167
+ export declare function removeAllLasers(laserVariant?: LaserVariant, subType?: int, cap?: int): boolean;
168
168
  /**
169
169
  * Helper function to remove all NPCs in the room.
170
170
  *
@@ -180,7 +180,7 @@ export declare function removeAllNPCs(cap?: int): boolean;
180
180
  * @param cap Optional. If specified, will only remove the given amount of pickups.
181
181
  * @returns True if one or more pickups were removed, false otherwise.
182
182
  */
183
- export declare function removeAllPickups(pickupVariant?: PickupVariant | int, subType?: int, cap?: int): boolean;
183
+ export declare function removeAllPickups(pickupVariant?: PickupVariant, subType?: int, cap?: int): boolean;
184
184
  /**
185
185
  * Helper function to remove all of the `EntityType.PROJECTILE` in the room.
186
186
  *
@@ -190,7 +190,7 @@ export declare function removeAllPickups(pickupVariant?: PickupVariant | int, su
190
190
  * @param cap Optional. If specified, will only remove the given amount of projectiles.
191
191
  * @returns True if one or more projectiles were removed, false otherwise.
192
192
  */
193
- export declare function removeAllProjectiles(projectileVariant?: ProjectileVariant | int, subType?: int, cap?: int): boolean;
193
+ export declare function removeAllProjectiles(projectileVariant?: ProjectileVariant, subType?: int, cap?: int): boolean;
194
194
  /**
195
195
  * Helper function to remove all of the `EntityType.SLOT` in the room.
196
196
  *
@@ -199,7 +199,7 @@ export declare function removeAllProjectiles(projectileVariant?: ProjectileVaria
199
199
  * @param cap Optional. If specified, will only remove the given amount of slots.
200
200
  * @returns True if one or more slots were removed, false otherwise.
201
201
  */
202
- export declare function removeAllSlots(slotVariant?: SlotVariant | int, subType?: int, cap?: int): boolean;
202
+ export declare function removeAllSlots(slotVariant?: SlotVariant, subType?: int, cap?: int): boolean;
203
203
  /**
204
204
  * Helper function to remove all of the `EntityType.TEAR` in the room.
205
205
  *
@@ -208,44 +208,44 @@ export declare function removeAllSlots(slotVariant?: SlotVariant | int, subType?
208
208
  * @param cap Optional. If specified, will only remove the given amount of tears.
209
209
  * @returns True if one or more tears were removed, false otherwise.
210
210
  */
211
- export declare function removeAllTears(tearVariant?: TearVariant | int, subType?: int, cap?: int): boolean;
211
+ export declare function removeAllTears(tearVariant?: TearVariant, subType?: int, cap?: int): boolean;
212
212
  /** Helper function to spawn a `EntityType.BOMB` (4). */
213
- export declare function spawnBomb(bombVariant: BombVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityBomb;
213
+ export declare function spawnBomb(bombVariant: BombVariant, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityBomb;
214
214
  /** Helper function to spawn a `EntityType.BOMB` (4) with a specific seed. */
215
- export declare function spawnBombWithSeed(bombVariant: BombVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityBomb;
215
+ export declare function spawnBombWithSeed(bombVariant: BombVariant, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityBomb;
216
216
  /** Helper function to spawn a `EntityType.EFFECT` (1000). */
217
- export declare function spawnEffect(effectVariant: EffectVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityEffect;
217
+ export declare function spawnEffect(effectVariant: EffectVariant, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityEffect;
218
218
  /** Helper function to spawn a `EntityType.EFFECT` (1000) with a specific seed. */
219
- export declare function spawnEffectWithSeed(effectVariant: EffectVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityEffect;
219
+ export declare function spawnEffectWithSeed(effectVariant: EffectVariant, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityEffect;
220
220
  /** Helper function to spawn a `EntityType.FAMILIAR` (3). */
221
- export declare function spawnFamiliar(familiarVariant: FamiliarVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityFamiliar;
221
+ export declare function spawnFamiliar(familiarVariant: FamiliarVariant, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityFamiliar;
222
222
  /** Helper function to spawn a `EntityType.FAMILIAR` (3) with a specific seed. */
223
- export declare function spawnFamiliarWithSeed(familiarVariant: FamiliarVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityFamiliar;
223
+ export declare function spawnFamiliarWithSeed(familiarVariant: FamiliarVariant, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityFamiliar;
224
224
  /** Helper function to spawn a `EntityType.KNIFE` (8). */
225
- export declare function spawnKnife(knifeVariant: KnifeVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityKnife;
225
+ export declare function spawnKnife(knifeVariant: KnifeVariant, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityKnife;
226
226
  /** Helper function to spawn a `EntityType.KNIFE` (8) with a specific seed. */
227
- export declare function spawnKnifeWithSeed(knifeVariant: KnifeVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityKnife;
227
+ export declare function spawnKnifeWithSeed(knifeVariant: KnifeVariant, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityKnife;
228
228
  /** Helper function to spawn a `EntityType.LASER` (7). */
229
- export declare function spawnLaser(laserVariant: LaserVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityLaser;
229
+ export declare function spawnLaser(laserVariant: LaserVariant, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityLaser;
230
230
  /** Helper function to spawn a `EntityType.LASER` (7) with a specific seed. */
231
- export declare function spawnLaserWithSeed(laserVariant: LaserVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityLaser;
231
+ export declare function spawnLaserWithSeed(laserVariant: LaserVariant, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityLaser;
232
232
  /** Helper function to spawn an NPC. */
233
- export declare function spawnNPC<T extends number>(entityType: T extends EntityTypeNonNPC ? never : T, variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityNPC;
233
+ export declare function spawnNPC<T extends EntityType>(entityType: T extends EntityTypeNonNPC ? never : T, variant: int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityNPC;
234
234
  /** Helper function to spawn an NPC with a specific seed. */
235
- export declare function spawnNPCWithSeed(entityType: EntityType | int, variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityNPC;
235
+ export declare function spawnNPCWithSeed<T extends EntityType>(entityType: T extends EntityTypeNonNPC ? never : T, variant: int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityNPC;
236
236
  /** Helper function to spawn a `EntityType.PICKUP` (5). */
237
- export declare function spawnPickup(pickupVariant: PickupVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
237
+ export declare function spawnPickup(pickupVariant: PickupVariant, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
238
238
  /** Helper function to spawn a `EntityType.PICKUP` (5) with a specific seed. */
239
- export declare function spawnPickupWithSeed(pickupVariant: PickupVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
239
+ export declare function spawnPickupWithSeed(pickupVariant: PickupVariant, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
240
240
  /** Helper function to spawn a `EntityType.PROJECTILE` (9). */
241
- export declare function spawnProjectile(projectileVariant: ProjectileVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityProjectile;
241
+ export declare function spawnProjectile(projectileVariant: ProjectileVariant, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityProjectile;
242
242
  /** Helper function to spawn a `EntityType.PROJECTILE` (9) with a specific seed. */
243
- export declare function spawnProjectileWithSeed(projectileVariant: ProjectileVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityProjectile;
243
+ export declare function spawnProjectileWithSeed(projectileVariant: ProjectileVariant, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityProjectile;
244
244
  /** Helper function to spawn a `EntityType.SLOT` (6). */
245
- export declare function spawnSlot(slotVariant: SlotVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): Entity;
245
+ export declare function spawnSlot(slotVariant: SlotVariant, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): Entity;
246
246
  /** Helper function to spawn a `EntityType.SLOT` (6) with a specific seed. */
247
247
  export declare function spawnSlotWithSeed(slotVariant: int | SlotVariant, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): Entity;
248
248
  /** Helper function to spawn a `EntityType.TEAR` (2). */
249
- export declare function spawnTear(tearVariant: TearVariant | int, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityTear;
249
+ export declare function spawnTear(tearVariant: TearVariant, subType: int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityTear;
250
250
  /** Helper function to spawn a `EntityType.EntityType` (2) with a specific seed. */
251
- export declare function spawnTearWithSeed(tearVariant: TearVariant | int, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityTear;
251
+ export declare function spawnTearWithSeed(tearVariant: TearVariant, subType: int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityTear;
@@ -28,6 +28,6 @@ function ____exports.checkFamiliarFromCollectibles(self, player, collectibleType
28
28
  )
29
29
  end
30
30
  function ____exports.isFamiliarThatShootsPlayerTears(self, familiar)
31
- return FAMILIARS_THAT_SHOOT_PLAYER_TEARS_SET:has(familiar.Type)
31
+ return FAMILIARS_THAT_SHOOT_PLAYER_TEARS_SET:has(familiar.Variant)
32
32
  end
33
33
  return ____exports
@@ -1,4 +1,4 @@
1
- import { CollectibleType } from "isaac-typescript-definitions";
1
+ import { CollectibleType, TrinketType } from "isaac-typescript-definitions";
2
2
  /**
3
3
  * Returns a set of all of the collectibles that grant flight. This is derived from collectibles
4
4
  * that have `CacheFlag.FLYING` set in the "items.xml" file.
@@ -9,11 +9,11 @@ import { CollectibleType } from "isaac-typescript-definitions";
9
9
  * @param pruneConditionalItems Whether or not collectibles that only grant flight conditionally
10
10
  * should be included in the set (like Empty Vessel).
11
11
  */
12
- export declare function getFlyingCollectibles(pruneConditionalItems: boolean): Set<CollectibleType | int>;
12
+ export declare function getFlyingCollectibles(pruneConditionalItems: boolean): Set<CollectibleType>;
13
13
  /**
14
14
  * Returns a set of all of the trinkets that grant flight. (All trinkets that grant flight do so
15
15
  * conditionally, like Bat Wing.)
16
16
  */
17
- export declare function getFlyingTrinkets(): ReadonlySet<CollectibleType | int>;
17
+ export declare function getFlyingTrinkets(): ReadonlySet<TrinketType>;
18
18
  export declare function hasFlyingTemporaryEffect(player: EntityPlayer): boolean;
19
19
  export declare function isFlyingCharacter(player: EntityPlayer): boolean;
@@ -1,10 +1,10 @@
1
- import { GridEntityType } from "isaac-typescript-definitions";
1
+ import { GridEntityType, GridEntityXMLType } from "isaac-typescript-definitions";
2
2
  /**
3
3
  * Helper function to convert the grid entity type found in a room XML file to the corresponding
4
4
  * grid entity type and variant normally used by the game. For example, a rock is represented as
5
5
  * 1000.0 in a room XML file, but `GridEntityType.ROCK` is equal to 2.
6
6
  */
7
- export declare function convertXMLGridEntityType(gridEntityXMLType: int, gridEntityXMLVariant: int): [int, int] | undefined;
7
+ export declare function convertXMLGridEntityType(gridEntityXMLType: GridEntityXMLType, gridEntityXMLVariant: int): [GridEntityType, int] | undefined;
8
8
  /**
9
9
  * Gets the entities that have a hitbox that overlaps with any part of the square that the grid
10
10
  * entity is on.
@@ -7,7 +7,6 @@ local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
7
7
  local ____exports = {}
8
8
  local getAllGridEntities
9
9
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
10
- local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
11
10
  local GridCollisionClass = ____isaac_2Dtypescript_2Ddefinitions.GridCollisionClass
12
11
  local GridEntityType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityType
13
12
  local PoopGridEntityVariant = ____isaac_2Dtypescript_2Ddefinitions.PoopGridEntityVariant
@@ -109,9 +108,6 @@ local BREAKABLE_GRID_ENTITY_TYPES_VARIANTS_BY_EXPLOSIONS = __TS__New(
109
108
  {(tostring(GridEntityType.STATUE) .. ".") .. tostring(StatueVariant.ANGEL)}
110
109
  )
111
110
  function ____exports.convertXMLGridEntityType(self, gridEntityXMLType, gridEntityXMLVariant)
112
- if gridEntityXMLType == EntityType.TRIGGER_OUTPUT then
113
- return nil
114
- end
115
111
  local gridEntityArray = GRID_ENTITY_XML_MAP:get(gridEntityXMLType)
116
112
  if gridEntityArray == nil then
117
113
  error("Failed to find an entry in the grid entity map for XML entity type: " .. tostring(gridEntityXMLType))
@@ -0,0 +1 @@
1
+ export declare function fillLevelWithRedRooms(): void;
@@ -0,0 +1,29 @@
1
+ local ____exports = {}
2
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
3
+ local DoorSlot = ____isaac_2Dtypescript_2Ddefinitions.DoorSlot
4
+ local ____cachedClasses = require("cachedClasses")
5
+ local game = ____cachedClasses.game
6
+ local ____enums = require("functions.enums")
7
+ local getEnumValues = ____enums.getEnumValues
8
+ local ____rooms = require("functions.rooms")
9
+ local getNumRooms = ____rooms.getNumRooms
10
+ local getRooms = ____rooms.getRooms
11
+ local isDoorSlotValidAtGridIndexForRedRoom = ____rooms.isDoorSlotValidAtGridIndexForRedRoom
12
+ function ____exports.fillLevelWithRedRooms(self)
13
+ local level = game:GetLevel()
14
+ local numRooms
15
+ repeat
16
+ do
17
+ local rooms = getRooms(nil)
18
+ numRooms = #rooms
19
+ for ____, roomDescriptor in ipairs(rooms) do
20
+ for ____, doorSlot in ipairs(getEnumValues(nil, DoorSlot)) do
21
+ if isDoorSlotValidAtGridIndexForRedRoom(nil, doorSlot, roomDescriptor.GridIndex) then
22
+ level:MakeRedRoomDoor(roomDescriptor.GridIndex, doorSlot)
23
+ end
24
+ end
25
+ end
26
+ end
27
+ until not (numRooms ~= getNumRooms(nil))
28
+ end
29
+ return ____exports
@@ -17,7 +17,7 @@ export declare function logColor(this: void, color: Color): void;
17
17
  export declare function logDamageFlags(this: void, flags: DamageFlag | BitFlags<DamageFlag>): void;
18
18
  export declare function logEffects(this: void, player: EntityPlayer): void;
19
19
  /** Helper function for printing out every entity (or filtered entity) in the current room. */
20
- export declare function logEntities(this: void, includeBackgroundEffects: boolean, entityTypeFilter?: EntityType | int): void;
20
+ export declare function logEntities(this: void, includeBackgroundEffects: boolean, entityTypeFilter?: EntityType): void;
21
21
  /** Helper function for printing out every entity flag that is turned on. Useful when debugging. */
22
22
  export declare function logEntityFlags(this: void, flags: EntityFlag | BitFlags<EntityFlag>): void;
23
23
  export declare function logEntityID(this: void, entity: Entity): void;
@@ -37,7 +37,7 @@ export declare function logGameStateFlags(this: void): void;
37
37
  /**
38
38
  * Helper function for printing out every grid entity (or filtered grid entity) in the current room.
39
39
  */
40
- export declare function logGridEntities(this: void, includeWalls: boolean, gridEntityTypeFilter?: GridEntityType | int): void;
40
+ export declare function logGridEntities(this: void, includeWalls: boolean, gridEntityTypeFilter?: GridEntityType): void;
41
41
  export declare function logKColor(this: void, kColor: KColor): void;
42
42
  /**
43
43
  * Helper function for printing out every level state flag that is turned on. Useful when debugging.
@@ -19,7 +19,7 @@ export declare function fireProjectiles(npc: EntityNPC, position: Vector, veloci
19
19
  * This function will not include NPCs on an internal blacklist, such as Death's scythes or Big Horn
20
20
  * holes.
21
21
  */
22
- export declare function getAliveNPCs(matchingEntityType?: EntityType | int, matchingVariant?: int, matchingSubType?: int, ignoreFriendly?: boolean): EntityNPC[];
22
+ export declare function getAliveNPCs(matchingEntityType?: EntityType, matchingVariant?: int, matchingSubType?: int, ignoreFriendly?: boolean): EntityNPC[];
23
23
  /**
24
24
  * Checks for specific NPCs that have "CanShutDoors" set to true naturally by the game, but should
25
25
  * not actually keep the doors closed (like Death's scythes).
@@ -33,7 +33,7 @@ export declare function isRedHeart(pickup: EntityPickup): boolean;
33
33
  * @param cap Optional. If specified, will only remove the given amount of cards.
34
34
  * @returns True if one or more cards were removed, false otherwise.
35
35
  */
36
- export declare function removeAllBatteries(batterySubType?: BatterySubType | int, cap?: int): boolean;
36
+ export declare function removeAllBatteries(batterySubType?: BatterySubType, cap?: int): boolean;
37
37
  /**
38
38
  * Helper function to remove all of the cards in the room.
39
39
  *
@@ -41,7 +41,7 @@ export declare function removeAllBatteries(batterySubType?: BatterySubType | int
41
41
  * @param cap Optional. If specified, will only remove the given amount of cards.
42
42
  * @returns True if one or more cards were removed, false otherwise.
43
43
  */
44
- export declare function removeAllCards(card?: Card | int, cap?: int): boolean;
44
+ export declare function removeAllCards(card?: Card, cap?: int): boolean;
45
45
  /**
46
46
  * Helper function to remove all of the coins in the room.
47
47
  *
@@ -49,7 +49,7 @@ export declare function removeAllCards(card?: Card | int, cap?: int): boolean;
49
49
  * @param cap Optional. If specified, will only remove the given amount of coins.
50
50
  * @returns True if one or more coins were removed, false otherwise.
51
51
  */
52
- export declare function removeAllCoins(coinSubType?: CoinSubType | int, cap?: int): boolean;
52
+ export declare function removeAllCoins(coinSubType?: CoinSubType, cap?: int): boolean;
53
53
  /**
54
54
  * Helper function to remove all of the collectibles in the room.
55
55
  *
@@ -58,7 +58,7 @@ export declare function removeAllCoins(coinSubType?: CoinSubType | int, cap?: in
58
58
  * @param cap Optional. If specified, will only remove the given amount of collectibles.
59
59
  * @returns True if one or more collectibles were removed, false otherwise.
60
60
  */
61
- export declare function removeAllCollectibles(collectibleType?: CollectibleType | int, cap?: int): boolean;
61
+ export declare function removeAllCollectibles(collectibleType?: CollectibleType, cap?: int): boolean;
62
62
  /**
63
63
  * Helper function to remove all of the hearts in the room.
64
64
  *
@@ -66,7 +66,7 @@ export declare function removeAllCollectibles(collectibleType?: CollectibleType
66
66
  * @param cap Optional. If specified, will only remove the given amount of hearts.
67
67
  * @returns True if one or more hearts were removed, false otherwise.
68
68
  */
69
- export declare function removeAllHearts(heartSubType?: HeartSubType | int, cap?: int): boolean;
69
+ export declare function removeAllHearts(heartSubType?: HeartSubType, cap?: int): boolean;
70
70
  /**
71
71
  * Helper function to remove all of the keys in the room.
72
72
  *
@@ -74,7 +74,7 @@ export declare function removeAllHearts(heartSubType?: HeartSubType | int, cap?:
74
74
  * @param cap Optional. If specified, will only remove the given amount of keys.
75
75
  * @returns True if one or more keys were removed, false otherwise.
76
76
  */
77
- export declare function removeAllKeys(keySubType?: KeySubType | int, cap?: int): boolean;
77
+ export declare function removeAllKeys(keySubType?: KeySubType, cap?: int): boolean;
78
78
  /**
79
79
  * Helper function to remove all of the pills in the room.
80
80
  *
@@ -90,7 +90,7 @@ export declare function removeAllPills(pillColor?: PillColor, cap?: int): boolea
90
90
  * @param cap Optional. If specified, will only remove the given amount of trinkets.
91
91
  * @returns True if one or more trinkets were removed, false otherwise.
92
92
  */
93
- export declare function removeAllSacks(sackSubType?: SackSubType | int, cap?: int): boolean;
93
+ export declare function removeAllSacks(sackSubType?: SackSubType, cap?: int): boolean;
94
94
  /**
95
95
  * Helper function to remove all of the trinkets in the room.
96
96
  *
@@ -99,36 +99,36 @@ export declare function removeAllSacks(sackSubType?: SackSubType | int, cap?: in
99
99
  * @param cap Optional. If specified, will only remove the given amount of trinkets.
100
100
  * @returns True if one or more trinkets were removed, false otherwise.
101
101
  */
102
- export declare function removeAllTrinkets(trinketType?: TrinketType | int, cap?: int): boolean;
102
+ export declare function removeAllTrinkets(trinketType?: TrinketType, cap?: int): boolean;
103
103
  /**
104
104
  * Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.LIL_BATTERY` (90).
105
105
  */
106
- export declare function spawnBattery(subType: BatterySubType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
107
- export declare function spawnBatteryWithSeed(subType: BatterySubType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
106
+ export declare function spawnBattery(subType: BatterySubType, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
107
+ export declare function spawnBatteryWithSeed(subType: BatterySubType, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
108
108
  /**
109
109
  * Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.TAROT_CARD` (300).
110
110
  */
111
- export declare function spawnCard(subType: Card | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
112
- export declare function spawnCardWithSeed(subType: Card | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
111
+ export declare function spawnCard(subType: Card, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
112
+ export declare function spawnCardWithSeed(subType: Card, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
113
113
  /** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.COIN` (20). */
114
- export declare function spawnCoin(subType: CoinSubType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
115
- export declare function spawnCoinWithSeed(subType: CoinSubType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
114
+ export declare function spawnCoin(subType: CoinSubType, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
115
+ export declare function spawnCoinWithSeed(subType: CoinSubType, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
116
116
  /** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.HEART` (10). */
117
- export declare function spawnHeart(subType: HeartSubType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
118
- export declare function spawnHeartWithSeed(subType: HeartSubType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
117
+ export declare function spawnHeart(subType: HeartSubType, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
118
+ export declare function spawnHeartWithSeed(subType: HeartSubType, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
119
119
  /** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.KEY` (30). */
120
- export declare function spawnKey(subType: KeySubType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
121
- export declare function spawnKeyWithSeed(subType: KeySubType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
120
+ export declare function spawnKey(subType: KeySubType, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
121
+ export declare function spawnKeyWithSeed(subType: KeySubType, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
122
122
  /** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.PILL` (70). */
123
- export declare function spawnPill(pillColor: PillColor | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
124
- export declare function spawnPillWithSeed(subType: PillColor | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
123
+ export declare function spawnPill(pillColor: PillColor, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
124
+ export declare function spawnPillWithSeed(subType: PillColor, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
125
125
  /**
126
126
  * Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.GRAB_BAG` (69).
127
127
  */
128
- export declare function spawnSack(subType: SackSubType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
129
- export declare function spawnSackWithSeed(subType: SackSubType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
128
+ export declare function spawnSack(subType: SackSubType, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
129
+ export declare function spawnSackWithSeed(subType: SackSubType, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
130
130
  /**
131
131
  * Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.TRINKET` (350).
132
132
  */
133
- export declare function spawnTrinket(subType: TrinketType | int, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
134
- export declare function spawnTrinketWithSeed(subType: TrinketType | int, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
133
+ export declare function spawnTrinket(subType: TrinketType, position: Vector, velocity?: Readonly<Vector>, spawner?: Entity | undefined, seed?: Seed | undefined): EntityPickup;
134
+ export declare function spawnTrinketWithSeed(subType: TrinketType, position: Vector, seed: Seed, velocity?: Readonly<Vector>, spawner?: Entity | undefined): EntityPickup;
@@ -23,7 +23,7 @@ export declare function getNormalPillColorFromHorse(pillColor: PillColor): PillC
23
23
  * Due to limitations in the API, this function will not work properly for modded pill effects, and
24
24
  * will always return `DEFAULT_PILL_EFFECT_CLASS` in those cases.
25
25
  */
26
- export declare function getPillEffectClass(pillEffect: PillEffect | int): ItemConfigPillEffectClass;
26
+ export declare function getPillEffectClass(pillEffect: PillEffect): ItemConfigPillEffectClass;
27
27
  /**
28
28
  * Helper function to get a pill effect name from a PillEffect enum value.
29
29
  *
@@ -34,7 +34,7 @@ export declare function getPillEffectClass(pillEffect: PillEffect | int): ItemCo
34
34
  * const pillEffectName = getPillEffectName(pillEffect); // trinketName is "Bad Gas"
35
35
  * ```
36
36
  */
37
- export declare function getPillEffectName(pillEffect: PillEffect | int): string;
37
+ export declare function getPillEffectName(pillEffect: PillEffect): string;
38
38
  /**
39
39
  * Helper function to get a pill effect type from a PillEffect enum value. In this context, the type
40
40
  * is equal to positive, negative, or neutral. This is derived from the suffix of the the "class"
@@ -44,5 +44,5 @@ export declare function getPillEffectName(pillEffect: PillEffect | int): string;
44
44
  * Due to limitations in the API, this function will not work properly for modded pill effects, and
45
45
  * will always return `DEFAULT_PILL_EFFECT_TYPE` in those cases.
46
46
  */
47
- export declare function getPillEffectType(pillEffect: PillEffect | int): ItemConfigPillEffectType;
47
+ export declare function getPillEffectType(pillEffect: PillEffect): ItemConfigPillEffectType;
48
48
  export declare function isHorsePill(pillColor: PillColor): boolean;