isaacscript-common 76.2.0 → 77.0.0

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 (144) hide show
  1. package/dist/classes/features/callbackLogic/CustomGridEntities.d.ts +8 -0
  2. package/dist/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
  3. package/dist/classes/features/callbackLogic/GameReorderedCallbacks.d.ts +6 -0
  4. package/dist/classes/features/callbackLogic/GameReorderedCallbacks.d.ts.map +1 -1
  5. package/dist/classes/features/other/CharacterHealthConversion.d.ts +2 -0
  6. package/dist/classes/features/other/CharacterHealthConversion.d.ts.map +1 -1
  7. package/dist/classes/features/other/CharacterStats.d.ts +2 -0
  8. package/dist/classes/features/other/CharacterStats.d.ts.map +1 -1
  9. package/dist/classes/features/other/CollectibleItemPoolType.d.ts +2 -0
  10. package/dist/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
  11. package/dist/classes/features/other/CustomHotkeys.d.ts +4 -0
  12. package/dist/classes/features/other/CustomHotkeys.d.ts.map +1 -1
  13. package/dist/classes/features/other/CustomItemPools.d.ts +2 -0
  14. package/dist/classes/features/other/CustomItemPools.d.ts.map +1 -1
  15. package/dist/classes/features/other/CustomPickups.d.ts +1 -0
  16. package/dist/classes/features/other/CustomPickups.d.ts.map +1 -1
  17. package/dist/classes/features/other/CustomStages.d.ts +3 -0
  18. package/dist/classes/features/other/CustomStages.d.ts.map +1 -1
  19. package/dist/classes/features/other/DebugDisplay.d.ts +54 -0
  20. package/dist/classes/features/other/DebugDisplay.d.ts.map +1 -1
  21. package/dist/classes/features/other/DeployJSONRoom.d.ts +1 -0
  22. package/dist/classes/features/other/DeployJSONRoom.d.ts.map +1 -1
  23. package/dist/classes/features/other/DisableInputs.d.ts +9 -0
  24. package/dist/classes/features/other/DisableInputs.d.ts.map +1 -1
  25. package/dist/classes/features/other/EdenStartingStatsHealth.d.ts +6 -0
  26. package/dist/classes/features/other/EdenStartingStatsHealth.d.ts.map +1 -1
  27. package/dist/classes/features/other/ExtraConsoleCommands.d.ts +6 -0
  28. package/dist/classes/features/other/ExtraConsoleCommands.d.ts.map +1 -1
  29. package/dist/classes/features/other/FadeInRemover.d.ts +4 -0
  30. package/dist/classes/features/other/FadeInRemover.d.ts.map +1 -1
  31. package/dist/classes/features/other/FastReset.d.ts +4 -0
  32. package/dist/classes/features/other/FastReset.d.ts.map +1 -1
  33. package/dist/classes/features/other/FlyingDetection.d.ts +2 -0
  34. package/dist/classes/features/other/FlyingDetection.d.ts.map +1 -1
  35. package/dist/classes/features/other/FlyingDetection.lua +2 -3
  36. package/dist/classes/features/other/ForgottenSwitch.d.ts +2 -0
  37. package/dist/classes/features/other/ForgottenSwitch.d.ts.map +1 -1
  38. package/dist/classes/features/other/ItemPoolDetection.d.ts +7 -1
  39. package/dist/classes/features/other/ItemPoolDetection.d.ts.map +1 -1
  40. package/dist/classes/features/other/ModdedElementDetection.d.ts +32 -0
  41. package/dist/classes/features/other/ModdedElementDetection.d.ts.map +1 -1
  42. package/dist/classes/features/other/ModdedElementSets.d.ts +88 -20
  43. package/dist/classes/features/other/ModdedElementSets.d.ts.map +1 -1
  44. package/dist/classes/features/other/ModdedElementSets.lua +75 -86
  45. package/dist/classes/features/other/NoSirenSteal.d.ts +1 -0
  46. package/dist/classes/features/other/NoSirenSteal.d.ts.map +1 -1
  47. package/dist/classes/features/other/Pause.d.ts +10 -0
  48. package/dist/classes/features/other/Pause.d.ts.map +1 -1
  49. package/dist/classes/features/other/PersistentEntities.d.ts +2 -0
  50. package/dist/classes/features/other/PersistentEntities.d.ts.map +1 -1
  51. package/dist/classes/features/other/PlayerCollectibleTracking.d.ts +3 -0
  52. package/dist/classes/features/other/PlayerCollectibleTracking.d.ts.map +1 -1
  53. package/dist/classes/features/other/PonyDetection.d.ts +4 -0
  54. package/dist/classes/features/other/PonyDetection.d.ts.map +1 -1
  55. package/dist/classes/features/other/PreventChildEntities.d.ts +2 -0
  56. package/dist/classes/features/other/PreventChildEntities.d.ts.map +1 -1
  57. package/dist/classes/features/other/RoomClearFrame.d.ts +19 -0
  58. package/dist/classes/features/other/RoomClearFrame.d.ts.map +1 -1
  59. package/dist/classes/features/other/RoomClearFrame.lua +8 -2
  60. package/dist/classes/features/other/RoomHistory.d.ts +17 -1
  61. package/dist/classes/features/other/RoomHistory.d.ts.map +1 -1
  62. package/dist/classes/features/other/RunInNFrames.d.ts +9 -2
  63. package/dist/classes/features/other/RunInNFrames.d.ts.map +1 -1
  64. package/dist/classes/features/other/RunNextRun.d.ts +2 -0
  65. package/dist/classes/features/other/RunNextRun.d.ts.map +1 -1
  66. package/dist/classes/features/other/SaveDataManager.d.ts +21 -0
  67. package/dist/classes/features/other/SaveDataManager.d.ts.map +1 -1
  68. package/dist/classes/features/other/SpawnRockAltRewards.d.ts +1 -0
  69. package/dist/classes/features/other/SpawnRockAltRewards.d.ts.map +1 -1
  70. package/dist/classes/features/other/StageHistory.d.ts +3 -0
  71. package/dist/classes/features/other/StageHistory.d.ts.map +1 -1
  72. package/dist/classes/features/other/StartAmbush.d.ts +2 -0
  73. package/dist/classes/features/other/StartAmbush.d.ts.map +1 -1
  74. package/dist/classes/features/other/TaintedLazarusPlayers.d.ts +2 -0
  75. package/dist/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
  76. package/dist/classes/features/other/UnlockAchievementsDetection.d.ts +2 -0
  77. package/dist/classes/features/other/UnlockAchievementsDetection.d.ts.map +1 -1
  78. package/dist/classes/private/CustomCallback.d.ts +0 -1
  79. package/dist/classes/private/CustomCallback.d.ts.map +1 -1
  80. package/dist/classes/private/CustomCallback.lua +0 -19
  81. package/dist/functions/array.d.ts +3 -3
  82. package/dist/functions/array.d.ts.map +1 -1
  83. package/dist/functions/array.lua +34 -28
  84. package/dist/functions/cards.lua +3 -3
  85. package/dist/functions/collectibles.d.ts +2 -2
  86. package/dist/functions/collectibles.d.ts.map +1 -1
  87. package/dist/functions/collectibles.lua +4 -5
  88. package/dist/functions/pills.d.ts +3 -3
  89. package/dist/functions/pills.d.ts.map +1 -1
  90. package/dist/functions/playerTrinkets.d.ts +1 -1
  91. package/dist/functions/playerTrinkets.d.ts.map +1 -1
  92. package/dist/functions/players.d.ts.map +1 -1
  93. package/dist/functions/players.lua +7 -7
  94. package/dist/index.rollup.d.ts +354 -34
  95. package/dist/isaacscript-common.lua +490 -510
  96. package/dist/sets/{itemConfigCardTypesForCardsSet.d.ts → itemConfigCardTypesForCards.d.ts} +2 -2
  97. package/dist/sets/itemConfigCardTypesForCards.d.ts.map +1 -0
  98. package/dist/sets/{itemConfigCardTypesForCardsSet.lua → itemConfigCardTypesForCards.lua} +1 -1
  99. package/package.json +1 -1
  100. package/src/classes/features/callbackLogic/CustomGridEntities.ts +8 -0
  101. package/src/classes/features/callbackLogic/GameReorderedCallbacks.ts +6 -0
  102. package/src/classes/features/other/CharacterHealthConversion.ts +2 -0
  103. package/src/classes/features/other/CharacterStats.ts +2 -0
  104. package/src/classes/features/other/CollectibleItemPoolType.ts +2 -0
  105. package/src/classes/features/other/CustomHotkeys.ts +4 -0
  106. package/src/classes/features/other/CustomItemPools.ts +2 -0
  107. package/src/classes/features/other/CustomPickups.ts +1 -0
  108. package/src/classes/features/other/CustomStages.ts +3 -0
  109. package/src/classes/features/other/DebugDisplay.ts +54 -0
  110. package/src/classes/features/other/DeployJSONRoom.ts +1 -0
  111. package/src/classes/features/other/DisableInputs.ts +9 -0
  112. package/src/classes/features/other/EdenStartingStatsHealth.ts +6 -0
  113. package/src/classes/features/other/ExtraConsoleCommands.ts +6 -0
  114. package/src/classes/features/other/FadeInRemover.ts +4 -0
  115. package/src/classes/features/other/FastReset.ts +4 -0
  116. package/src/classes/features/other/FlyingDetection.ts +2 -0
  117. package/src/classes/features/other/ForgottenSwitch.ts +2 -0
  118. package/src/classes/features/other/ItemPoolDetection.ts +7 -1
  119. package/src/classes/features/other/ModdedElementDetection.ts +32 -0
  120. package/src/classes/features/other/ModdedElementSets.ts +174 -121
  121. package/src/classes/features/other/NoSirenSteal.ts +1 -0
  122. package/src/classes/features/other/Pause.ts +10 -0
  123. package/src/classes/features/other/PersistentEntities.ts +2 -0
  124. package/src/classes/features/other/PlayerCollectibleTracking.ts +3 -0
  125. package/src/classes/features/other/PonyDetection.ts +4 -0
  126. package/src/classes/features/other/PreventChildEntities.ts +2 -0
  127. package/src/classes/features/other/RoomClearFrame.ts +27 -1
  128. package/src/classes/features/other/RoomHistory.ts +17 -1
  129. package/src/classes/features/other/RunInNFrames.ts +9 -2
  130. package/src/classes/features/other/RunNextRun.ts +2 -0
  131. package/src/classes/features/other/SaveDataManager.ts +21 -0
  132. package/src/classes/features/other/SpawnRockAltRewards.ts +1 -0
  133. package/src/classes/features/other/StageHistory.ts +3 -0
  134. package/src/classes/features/other/StartAmbush.ts +2 -0
  135. package/src/classes/features/other/TaintedLazarusPlayers.ts +2 -0
  136. package/src/classes/features/other/UnlockAchievementsDetection.ts +2 -0
  137. package/src/classes/private/CustomCallback.ts +0 -15
  138. package/src/functions/array.ts +12 -5
  139. package/src/functions/cards.ts +2 -2
  140. package/src/functions/collectibles.ts +7 -7
  141. package/src/functions/pills.ts +3 -3
  142. package/src/functions/playerTrinkets.ts +3 -1
  143. package/src/sets/{itemConfigCardTypesForCardsSet.ts → itemConfigCardTypesForCards.ts} +3 -1
  144. package/dist/sets/itemConfigCardTypesForCardsSet.d.ts.map +0 -1
@@ -28,6 +28,8 @@ export class ForgottenSwitch extends Feature {
28
28
  * Forgotten. This takes 1 game frame to take effect.
29
29
  *
30
30
  * In order to use this function, you must upgrade your mod with `ISCFeature.FORGOTTEN_SWITCH`.
31
+ *
32
+ * @public
31
33
  */
32
34
  @Exported
33
35
  public forgottenSwitch(player: EntityPlayer): void {
@@ -48,11 +48,13 @@ export class ItemPoolDetection extends Feature {
48
48
  * expensive, so only use it in situations where the lag is acceptable.
49
49
  *
50
50
  * In order to use this function, you must upgrade your mod with `ISCFeature.ITEM_POOL_DETECTION`.
51
+ *
52
+ * @public
51
53
  */
52
54
  @Exported
53
55
  public getCollectiblesInItemPool(
54
56
  itemPoolType: ItemPoolType,
55
- ): CollectibleType[] {
57
+ ): readonly CollectibleType[] {
56
58
  const collectibleArray = this.moddedElementSets.getCollectibleTypes();
57
59
  return collectibleArray.filter((collectibleType) =>
58
60
  this.isCollectibleInItemPool(collectibleType, itemPoolType),
@@ -70,6 +72,8 @@ export class ItemPoolDetection extends Feature {
70
72
  * blacklist every collectible except for the one provided.
71
73
  *
72
74
  * In order to use this function, you must upgrade your mod with `ISCFeature.ITEM_POOL_DETECTION`.
75
+ *
76
+ * @public
73
77
  */
74
78
  @Exported
75
79
  public isCollectibleInItemPool(
@@ -153,6 +157,8 @@ export class ItemPoolDetection extends Feature {
153
157
  * collectibles from item pools).
154
158
  *
155
159
  * In order to use this function, you must upgrade your mod with `ISCFeature.ITEM_POOL_DETECTION`.
160
+ *
161
+ * @public
156
162
  */
157
163
  @Exported
158
164
  public isCollectibleUnlocked(
@@ -75,6 +75,8 @@ export class ModdedElementDetection extends Feature {
75
75
  *
76
76
  * In order to use this function, you must upgrade your mod with
77
77
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
78
+ *
79
+ * @public
78
80
  */
79
81
  @Exported
80
82
  public getFirstModdedCollectibleType(): CollectibleType | undefined {
@@ -107,6 +109,8 @@ export class ModdedElementDetection extends Feature {
107
109
  *
108
110
  * In order to use this function, you must upgrade your mod with
109
111
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
112
+ *
113
+ * @public
110
114
  */
111
115
  @Exported
112
116
  public getLastCollectibleType(): CollectibleType {
@@ -125,6 +129,8 @@ export class ModdedElementDetection extends Feature {
125
129
  *
126
130
  * In order to use this function, you must upgrade your mod with
127
131
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
132
+ *
133
+ * @public
128
134
  */
129
135
  @Exported
130
136
  public getNumCollectibleTypes(): int {
@@ -143,6 +149,8 @@ export class ModdedElementDetection extends Feature {
143
149
  *
144
150
  * In order to use this function, you must upgrade your mod with
145
151
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
152
+ *
153
+ * @public
146
154
  */
147
155
  @Exported
148
156
  public getNumModdedCollectibleTypes(): int {
@@ -164,6 +172,8 @@ export class ModdedElementDetection extends Feature {
164
172
  *
165
173
  * In order to use this function, you must upgrade your mod with
166
174
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
175
+ *
176
+ * @public
167
177
  */
168
178
  @Exported
169
179
  public getFirstModdedTrinketType(): TrinketType | undefined {
@@ -190,6 +200,8 @@ export class ModdedElementDetection extends Feature {
190
200
  *
191
201
  * In order to use this function, you must upgrade your mod with
192
202
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
203
+ *
204
+ * @public
193
205
  */
194
206
  @Exported
195
207
  public getLastTrinketType(): TrinketType {
@@ -207,6 +219,8 @@ export class ModdedElementDetection extends Feature {
207
219
  *
208
220
  * In order to use this function, you must upgrade your mod with
209
221
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
222
+ *
223
+ * @public
210
224
  */
211
225
  @Exported
212
226
  public getNumTrinketTypes(): int {
@@ -224,6 +238,8 @@ export class ModdedElementDetection extends Feature {
224
238
  *
225
239
  * In order to use this function, you must upgrade your mod with
226
240
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
241
+ *
242
+ * @public
227
243
  */
228
244
  @Exported
229
245
  public getNumModdedTrinketTypes(): int {
@@ -245,6 +261,8 @@ export class ModdedElementDetection extends Feature {
245
261
  *
246
262
  * In order to use this function, you must upgrade your mod with
247
263
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
264
+ *
265
+ * @public
248
266
  */
249
267
  @Exported
250
268
  public getFirstModdedCardType(): CardType | undefined {
@@ -269,6 +287,8 @@ export class ModdedElementDetection extends Feature {
269
287
  *
270
288
  * In order to use this function, you must upgrade your mod with
271
289
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
290
+ *
291
+ * @public
272
292
  */
273
293
  @Exported
274
294
  public getLastCardType(): CardType {
@@ -288,6 +308,8 @@ export class ModdedElementDetection extends Feature {
288
308
  *
289
309
  * In order to use this function, you must upgrade your mod with
290
310
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
311
+ *
312
+ * @public
291
313
  */
292
314
  @Exported
293
315
  public getNumCardTypes(): int {
@@ -301,6 +323,8 @@ export class ModdedElementDetection extends Feature {
301
323
  *
302
324
  * In order to use this function, you must upgrade your mod with
303
325
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
326
+ *
327
+ * @public
304
328
  */
305
329
  @Exported
306
330
  public getNumModdedCardTypes(): int {
@@ -323,6 +347,8 @@ export class ModdedElementDetection extends Feature {
323
347
  *
324
348
  * In order to use this function, you must upgrade your mod with
325
349
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
350
+ *
351
+ * @public
326
352
  */
327
353
  @Exported
328
354
  public getFirstModdedPillEffect(): PillEffect | undefined {
@@ -352,6 +378,8 @@ export class ModdedElementDetection extends Feature {
352
378
  *
353
379
  * In order to use this function, you must upgrade your mod with
354
380
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
381
+ *
382
+ * @public
355
383
  */
356
384
  @Exported
357
385
  public getLastPillEffect(): PillEffect {
@@ -373,6 +401,8 @@ export class ModdedElementDetection extends Feature {
373
401
  *
374
402
  * In order to use this function, you must upgrade your mod with
375
403
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
404
+ *
405
+ * @public
376
406
  */
377
407
  @Exported
378
408
  public getNumPillEffects(): int {
@@ -387,6 +417,8 @@ export class ModdedElementDetection extends Feature {
387
417
  *
388
418
  * In order to use this function, you must upgrade your mod with
389
419
  * `ISCFeature.MODDED_ELEMENT_DETECTION`.
420
+ *
421
+ * @public
390
422
  */
391
423
  @Exported
392
424
  public getNumModdedPillEffects(): int {