isaacscript-common 76.2.0 → 76.3.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.
- package/dist/classes/features/callbackLogic/CustomGridEntities.d.ts +8 -0
- package/dist/classes/features/callbackLogic/CustomGridEntities.d.ts.map +1 -1
- package/dist/classes/features/callbackLogic/GameReorderedCallbacks.d.ts +6 -0
- package/dist/classes/features/callbackLogic/GameReorderedCallbacks.d.ts.map +1 -1
- package/dist/classes/features/other/CharacterHealthConversion.d.ts +2 -0
- package/dist/classes/features/other/CharacterHealthConversion.d.ts.map +1 -1
- package/dist/classes/features/other/CharacterStats.d.ts +2 -0
- package/dist/classes/features/other/CharacterStats.d.ts.map +1 -1
- package/dist/classes/features/other/CollectibleItemPoolType.d.ts +2 -0
- package/dist/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
- package/dist/classes/features/other/CustomHotkeys.d.ts +4 -0
- package/dist/classes/features/other/CustomHotkeys.d.ts.map +1 -1
- package/dist/classes/features/other/CustomItemPools.d.ts +2 -0
- package/dist/classes/features/other/CustomItemPools.d.ts.map +1 -1
- package/dist/classes/features/other/CustomPickups.d.ts +1 -0
- package/dist/classes/features/other/CustomPickups.d.ts.map +1 -1
- package/dist/classes/features/other/CustomStages.d.ts +3 -0
- package/dist/classes/features/other/CustomStages.d.ts.map +1 -1
- package/dist/classes/features/other/DebugDisplay.d.ts +54 -0
- package/dist/classes/features/other/DebugDisplay.d.ts.map +1 -1
- package/dist/classes/features/other/DeployJSONRoom.d.ts +1 -0
- package/dist/classes/features/other/DeployJSONRoom.d.ts.map +1 -1
- package/dist/classes/features/other/DisableInputs.d.ts +9 -0
- package/dist/classes/features/other/DisableInputs.d.ts.map +1 -1
- package/dist/classes/features/other/EdenStartingStatsHealth.d.ts +6 -0
- package/dist/classes/features/other/EdenStartingStatsHealth.d.ts.map +1 -1
- package/dist/classes/features/other/ExtraConsoleCommands.d.ts +6 -0
- package/dist/classes/features/other/ExtraConsoleCommands.d.ts.map +1 -1
- package/dist/classes/features/other/FadeInRemover.d.ts +4 -0
- package/dist/classes/features/other/FadeInRemover.d.ts.map +1 -1
- package/dist/classes/features/other/FastReset.d.ts +4 -0
- package/dist/classes/features/other/FastReset.d.ts.map +1 -1
- package/dist/classes/features/other/FlyingDetection.d.ts +2 -0
- package/dist/classes/features/other/FlyingDetection.d.ts.map +1 -1
- package/dist/classes/features/other/ForgottenSwitch.d.ts +2 -0
- package/dist/classes/features/other/ForgottenSwitch.d.ts.map +1 -1
- package/dist/classes/features/other/ItemPoolDetection.d.ts +6 -0
- package/dist/classes/features/other/ItemPoolDetection.d.ts.map +1 -1
- package/dist/classes/features/other/ModdedElementDetection.d.ts +32 -0
- package/dist/classes/features/other/ModdedElementDetection.d.ts.map +1 -1
- package/dist/classes/features/other/ModdedElementSets.d.ts +68 -0
- package/dist/classes/features/other/ModdedElementSets.d.ts.map +1 -1
- package/dist/classes/features/other/NoSirenSteal.d.ts +1 -0
- package/dist/classes/features/other/NoSirenSteal.d.ts.map +1 -1
- package/dist/classes/features/other/Pause.d.ts +10 -0
- package/dist/classes/features/other/Pause.d.ts.map +1 -1
- package/dist/classes/features/other/PersistentEntities.d.ts +2 -0
- package/dist/classes/features/other/PersistentEntities.d.ts.map +1 -1
- package/dist/classes/features/other/PlayerCollectibleTracking.d.ts +3 -0
- package/dist/classes/features/other/PlayerCollectibleTracking.d.ts.map +1 -1
- package/dist/classes/features/other/PonyDetection.d.ts +4 -0
- package/dist/classes/features/other/PonyDetection.d.ts.map +1 -1
- package/dist/classes/features/other/PreventChildEntities.d.ts +2 -0
- package/dist/classes/features/other/PreventChildEntities.d.ts.map +1 -1
- package/dist/classes/features/other/RoomClearFrame.d.ts +19 -0
- package/dist/classes/features/other/RoomClearFrame.d.ts.map +1 -1
- package/dist/classes/features/other/RoomClearFrame.lua +8 -2
- package/dist/classes/features/other/RoomHistory.d.ts +17 -1
- package/dist/classes/features/other/RoomHistory.d.ts.map +1 -1
- package/dist/classes/features/other/RunInNFrames.d.ts +9 -2
- package/dist/classes/features/other/RunInNFrames.d.ts.map +1 -1
- package/dist/classes/features/other/RunNextRun.d.ts +2 -0
- package/dist/classes/features/other/RunNextRun.d.ts.map +1 -1
- package/dist/classes/features/other/SaveDataManager.d.ts +21 -0
- package/dist/classes/features/other/SaveDataManager.d.ts.map +1 -1
- package/dist/classes/features/other/SpawnRockAltRewards.d.ts +1 -0
- package/dist/classes/features/other/SpawnRockAltRewards.d.ts.map +1 -1
- package/dist/classes/features/other/StageHistory.d.ts +3 -0
- package/dist/classes/features/other/StageHistory.d.ts.map +1 -1
- package/dist/classes/features/other/StartAmbush.d.ts +2 -0
- package/dist/classes/features/other/StartAmbush.d.ts.map +1 -1
- package/dist/classes/features/other/TaintedLazarusPlayers.d.ts +2 -0
- package/dist/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
- package/dist/classes/features/other/UnlockAchievementsDetection.d.ts +2 -0
- package/dist/classes/features/other/UnlockAchievementsDetection.d.ts.map +1 -1
- package/dist/classes/private/CustomCallback.d.ts +0 -1
- package/dist/classes/private/CustomCallback.d.ts.map +1 -1
- package/dist/classes/private/CustomCallback.lua +0 -19
- package/dist/functions/players.d.ts.map +1 -1
- package/dist/functions/players.lua +7 -7
- package/dist/index.rollup.d.ts +324 -4
- package/dist/isaacscript-common.lua +370 -383
- package/package.json +1 -1
- package/src/classes/features/callbackLogic/CustomGridEntities.ts +8 -0
- package/src/classes/features/callbackLogic/GameReorderedCallbacks.ts +6 -0
- package/src/classes/features/other/CharacterHealthConversion.ts +2 -0
- package/src/classes/features/other/CharacterStats.ts +2 -0
- package/src/classes/features/other/CollectibleItemPoolType.ts +2 -0
- package/src/classes/features/other/CustomHotkeys.ts +4 -0
- package/src/classes/features/other/CustomItemPools.ts +2 -0
- package/src/classes/features/other/CustomPickups.ts +1 -0
- package/src/classes/features/other/CustomStages.ts +3 -0
- package/src/classes/features/other/DebugDisplay.ts +54 -0
- package/src/classes/features/other/DeployJSONRoom.ts +1 -0
- package/src/classes/features/other/DisableInputs.ts +9 -0
- package/src/classes/features/other/EdenStartingStatsHealth.ts +6 -0
- package/src/classes/features/other/ExtraConsoleCommands.ts +6 -0
- package/src/classes/features/other/FadeInRemover.ts +4 -0
- package/src/classes/features/other/FastReset.ts +4 -0
- package/src/classes/features/other/FlyingDetection.ts +2 -0
- package/src/classes/features/other/ForgottenSwitch.ts +2 -0
- package/src/classes/features/other/ItemPoolDetection.ts +6 -0
- package/src/classes/features/other/ModdedElementDetection.ts +32 -0
- package/src/classes/features/other/ModdedElementSets.ts +68 -0
- package/src/classes/features/other/NoSirenSteal.ts +1 -0
- package/src/classes/features/other/Pause.ts +10 -0
- package/src/classes/features/other/PersistentEntities.ts +2 -0
- package/src/classes/features/other/PlayerCollectibleTracking.ts +3 -0
- package/src/classes/features/other/PonyDetection.ts +4 -0
- package/src/classes/features/other/PreventChildEntities.ts +2 -0
- package/src/classes/features/other/RoomClearFrame.ts +27 -1
- package/src/classes/features/other/RoomHistory.ts +17 -1
- package/src/classes/features/other/RunInNFrames.ts +9 -2
- package/src/classes/features/other/RunNextRun.ts +2 -0
- package/src/classes/features/other/SaveDataManager.ts +21 -0
- package/src/classes/features/other/SpawnRockAltRewards.ts +1 -0
- package/src/classes/features/other/StageHistory.ts +3 -0
- package/src/classes/features/other/StartAmbush.ts +2 -0
- package/src/classes/features/other/TaintedLazarusPlayers.ts +2 -0
- package/src/classes/features/other/UnlockAchievementsDetection.ts +2 -0
- package/src/classes/private/CustomCallback.ts +0 -15
|
@@ -48,6 +48,8 @@ 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(
|
|
@@ -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 {
|
|
@@ -496,6 +496,8 @@ export class ModdedElementSets extends Feature {
|
|
|
496
496
|
* order).
|
|
497
497
|
*
|
|
498
498
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
499
|
+
*
|
|
500
|
+
* @public
|
|
499
501
|
*/
|
|
500
502
|
@Exported
|
|
501
503
|
public getCollectibleTypes(): readonly CollectibleType[] {
|
|
@@ -515,6 +517,8 @@ export class ModdedElementSets extends Feature {
|
|
|
515
517
|
* order).
|
|
516
518
|
*
|
|
517
519
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
520
|
+
*
|
|
521
|
+
* @public
|
|
518
522
|
*/
|
|
519
523
|
@Exported
|
|
520
524
|
public getCollectibleTypeSet(): ReadonlySet<CollectibleType> {
|
|
@@ -533,6 +537,8 @@ export class ModdedElementSets extends Feature {
|
|
|
533
537
|
* order).
|
|
534
538
|
*
|
|
535
539
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
540
|
+
*
|
|
541
|
+
* @public
|
|
536
542
|
*/
|
|
537
543
|
@Exported
|
|
538
544
|
public getModdedCollectibleTypes(): readonly CollectibleType[] {
|
|
@@ -551,6 +557,8 @@ export class ModdedElementSets extends Feature {
|
|
|
551
557
|
* order).
|
|
552
558
|
*
|
|
553
559
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
560
|
+
*
|
|
561
|
+
* @public
|
|
554
562
|
*/
|
|
555
563
|
@Exported
|
|
556
564
|
public getModdedCollectibleTypesSet(): ReadonlySet<CollectibleType> {
|
|
@@ -569,6 +577,8 @@ export class ModdedElementSets extends Feature {
|
|
|
569
577
|
* order).
|
|
570
578
|
*
|
|
571
579
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
580
|
+
*
|
|
581
|
+
* @public
|
|
572
582
|
*/
|
|
573
583
|
@Exported
|
|
574
584
|
public getPlayerCollectibleMap(
|
|
@@ -624,6 +634,8 @@ export class ModdedElementSets extends Feature {
|
|
|
624
634
|
* order).
|
|
625
635
|
*
|
|
626
636
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
637
|
+
*
|
|
638
|
+
* @public
|
|
627
639
|
*/
|
|
628
640
|
@Exported
|
|
629
641
|
public getTrinketTypes(): readonly TrinketType[] {
|
|
@@ -642,6 +654,8 @@ export class ModdedElementSets extends Feature {
|
|
|
642
654
|
* order).
|
|
643
655
|
*
|
|
644
656
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
657
|
+
*
|
|
658
|
+
* @public
|
|
645
659
|
*/
|
|
646
660
|
@Exported
|
|
647
661
|
public getTrinketTypesSet(): ReadonlySet<TrinketType> {
|
|
@@ -660,6 +674,8 @@ export class ModdedElementSets extends Feature {
|
|
|
660
674
|
* order).
|
|
661
675
|
*
|
|
662
676
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
677
|
+
*
|
|
678
|
+
* @public
|
|
663
679
|
*/
|
|
664
680
|
@Exported
|
|
665
681
|
public getModdedTrinketTypes(): readonly TrinketType[] {
|
|
@@ -678,6 +694,8 @@ export class ModdedElementSets extends Feature {
|
|
|
678
694
|
* order).
|
|
679
695
|
*
|
|
680
696
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
697
|
+
*
|
|
698
|
+
* @public
|
|
681
699
|
*/
|
|
682
700
|
@Exported
|
|
683
701
|
public getModdedTrinketTypesSet(): ReadonlySet<TrinketType> {
|
|
@@ -699,6 +717,8 @@ export class ModdedElementSets extends Feature {
|
|
|
699
717
|
* not all card types will necessarily be present when a mod first loads (due to mod load order).
|
|
700
718
|
*
|
|
701
719
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
720
|
+
*
|
|
721
|
+
* @public
|
|
702
722
|
*/
|
|
703
723
|
@Exported
|
|
704
724
|
public getCardTypes(): readonly CardType[] {
|
|
@@ -716,6 +736,8 @@ export class ModdedElementSets extends Feature {
|
|
|
716
736
|
* not all card types will necessarily be present when a mod first loads (due to mod load order).
|
|
717
737
|
*
|
|
718
738
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
739
|
+
*
|
|
740
|
+
* @public
|
|
719
741
|
*/
|
|
720
742
|
@Exported
|
|
721
743
|
public getCardTypesSet(): ReadonlySet<CardType> {
|
|
@@ -733,6 +755,8 @@ export class ModdedElementSets extends Feature {
|
|
|
733
755
|
* not all card types will necessarily be present when a mod first loads (due to mod load order).
|
|
734
756
|
*
|
|
735
757
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
758
|
+
*
|
|
759
|
+
* @public
|
|
736
760
|
*/
|
|
737
761
|
@Exported
|
|
738
762
|
public getModdedCardTypes(): readonly CardType[] {
|
|
@@ -750,6 +774,8 @@ export class ModdedElementSets extends Feature {
|
|
|
750
774
|
* not all card types will necessarily be present when a mod first loads (due to mod load order).
|
|
751
775
|
*
|
|
752
776
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
777
|
+
*
|
|
778
|
+
* @public
|
|
753
779
|
*/
|
|
754
780
|
@Exported
|
|
755
781
|
public getModdedCardTypesSet(): ReadonlySet<CardType> {
|
|
@@ -772,6 +798,8 @@ export class ModdedElementSets extends Feature {
|
|
|
772
798
|
* order).
|
|
773
799
|
*
|
|
774
800
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
801
|
+
*
|
|
802
|
+
* @public
|
|
775
803
|
*/
|
|
776
804
|
@Exported
|
|
777
805
|
public getPillEffects(): readonly PillEffect[] {
|
|
@@ -790,6 +818,8 @@ export class ModdedElementSets extends Feature {
|
|
|
790
818
|
* order).
|
|
791
819
|
*
|
|
792
820
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
821
|
+
*
|
|
822
|
+
* @public
|
|
793
823
|
*/
|
|
794
824
|
@Exported
|
|
795
825
|
public getPillEffectsSet(): ReadonlySet<PillEffect> {
|
|
@@ -808,6 +838,8 @@ export class ModdedElementSets extends Feature {
|
|
|
808
838
|
* order).
|
|
809
839
|
*
|
|
810
840
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
841
|
+
*
|
|
842
|
+
* @public
|
|
811
843
|
*/
|
|
812
844
|
@Exported
|
|
813
845
|
public getModdedPillEffects(): readonly PillEffect[] {
|
|
@@ -826,6 +858,8 @@ export class ModdedElementSets extends Feature {
|
|
|
826
858
|
* order).
|
|
827
859
|
*
|
|
828
860
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
861
|
+
*
|
|
862
|
+
* @public
|
|
829
863
|
*/
|
|
830
864
|
@Exported
|
|
831
865
|
public getModdedPillEffectsSet(): ReadonlySet<PillEffect> {
|
|
@@ -846,6 +880,8 @@ export class ModdedElementSets extends Feature {
|
|
|
846
880
|
* order).
|
|
847
881
|
*
|
|
848
882
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
883
|
+
*
|
|
884
|
+
* @public
|
|
849
885
|
*/
|
|
850
886
|
@Exported
|
|
851
887
|
public getCollectibleTypesWithCacheFlag(
|
|
@@ -870,6 +906,8 @@ export class ModdedElementSets extends Feature {
|
|
|
870
906
|
* order).
|
|
871
907
|
*
|
|
872
908
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
909
|
+
*
|
|
910
|
+
* @public
|
|
873
911
|
*/
|
|
874
912
|
@Exported
|
|
875
913
|
public getTrinketsTypesWithCacheFlag(
|
|
@@ -908,6 +946,8 @@ export class ModdedElementSets extends Feature {
|
|
|
908
946
|
* order).
|
|
909
947
|
*
|
|
910
948
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
949
|
+
*
|
|
950
|
+
* @public
|
|
911
951
|
*/
|
|
912
952
|
@Exported
|
|
913
953
|
public getPlayerCollectiblesWithCacheFlag(
|
|
@@ -940,6 +980,8 @@ export class ModdedElementSets extends Feature {
|
|
|
940
980
|
* order).
|
|
941
981
|
*
|
|
942
982
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
983
|
+
*
|
|
984
|
+
* @public
|
|
943
985
|
*/
|
|
944
986
|
@Exported
|
|
945
987
|
public getPlayerTrinketsWithCacheFlag(
|
|
@@ -980,6 +1022,7 @@ export class ModdedElementSets extends Feature {
|
|
|
980
1022
|
*
|
|
981
1023
|
* @param includeConditionalItems Whether collectibles that only grant flight conditionally should
|
|
982
1024
|
* be included in the set (like Empty Vessel).
|
|
1025
|
+
* @public
|
|
983
1026
|
*/
|
|
984
1027
|
@Exported
|
|
985
1028
|
public getFlyingCollectibleTypes(
|
|
@@ -1005,6 +1048,8 @@ export class ModdedElementSets extends Feature {
|
|
|
1005
1048
|
* order).
|
|
1006
1049
|
*
|
|
1007
1050
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
1051
|
+
*
|
|
1052
|
+
* @public
|
|
1008
1053
|
*/
|
|
1009
1054
|
@Exported
|
|
1010
1055
|
public getFlyingTrinketTypes(): ReadonlySet<TrinketType> {
|
|
@@ -1031,6 +1076,8 @@ export class ModdedElementSets extends Feature {
|
|
|
1031
1076
|
* order).
|
|
1032
1077
|
*
|
|
1033
1078
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
1079
|
+
*
|
|
1080
|
+
* @public
|
|
1034
1081
|
*/
|
|
1035
1082
|
@Exported
|
|
1036
1083
|
public getCollectibleTypesWithTag(
|
|
@@ -1055,6 +1102,8 @@ export class ModdedElementSets extends Feature {
|
|
|
1055
1102
|
* order).
|
|
1056
1103
|
*
|
|
1057
1104
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
1105
|
+
*
|
|
1106
|
+
* @public
|
|
1058
1107
|
*/
|
|
1059
1108
|
@Exported
|
|
1060
1109
|
public getPlayerCollectiblesWithTag(
|
|
@@ -1091,6 +1140,8 @@ export class ModdedElementSets extends Feature {
|
|
|
1091
1140
|
* order).
|
|
1092
1141
|
*
|
|
1093
1142
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
1143
|
+
*
|
|
1144
|
+
* @public
|
|
1094
1145
|
*/
|
|
1095
1146
|
@Exported
|
|
1096
1147
|
public getCollectibleTypesForTransformation(
|
|
@@ -1114,6 +1165,8 @@ export class ModdedElementSets extends Feature {
|
|
|
1114
1165
|
* order).
|
|
1115
1166
|
*
|
|
1116
1167
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
1168
|
+
*
|
|
1169
|
+
* @public
|
|
1117
1170
|
*/
|
|
1118
1171
|
@Exported
|
|
1119
1172
|
public getPlayerCollectiblesForTransformation(
|
|
@@ -1148,6 +1201,8 @@ export class ModdedElementSets extends Feature {
|
|
|
1148
1201
|
* order).
|
|
1149
1202
|
*
|
|
1150
1203
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
1204
|
+
*
|
|
1205
|
+
* @public
|
|
1151
1206
|
*/
|
|
1152
1207
|
@Exported
|
|
1153
1208
|
public getEdenActiveCollectibleTypes(): ReadonlySet<CollectibleType> {
|
|
@@ -1166,6 +1221,8 @@ export class ModdedElementSets extends Feature {
|
|
|
1166
1221
|
* order).
|
|
1167
1222
|
*
|
|
1168
1223
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
1224
|
+
*
|
|
1225
|
+
* @public
|
|
1169
1226
|
*/
|
|
1170
1227
|
@Exported
|
|
1171
1228
|
public getEdenPassiveCollectibleTypes(): ReadonlySet<CollectibleType> {
|
|
@@ -1189,6 +1246,7 @@ export class ModdedElementSets extends Feature {
|
|
|
1189
1246
|
* `RNG.Next` method will be called. If `undefined` is provided, it will default
|
|
1190
1247
|
* to a random seed.
|
|
1191
1248
|
* @param exceptions Optional. An array of runes to not select.
|
|
1249
|
+
* @public
|
|
1192
1250
|
*/
|
|
1193
1251
|
@Exported
|
|
1194
1252
|
public getRandomEdenActiveCollectibleType(
|
|
@@ -1221,6 +1279,7 @@ export class ModdedElementSets extends Feature {
|
|
|
1221
1279
|
* `RNG.Next` method will be called. If `undefined` is provided, it will default
|
|
1222
1280
|
* to a random seed.
|
|
1223
1281
|
* @param exceptions Optional. An array of runes to not select.
|
|
1282
|
+
* @public
|
|
1224
1283
|
*/
|
|
1225
1284
|
@Exported
|
|
1226
1285
|
public getRandomEdenPassiveCollectibleType(
|
|
@@ -1248,6 +1307,8 @@ export class ModdedElementSets extends Feature {
|
|
|
1248
1307
|
* order).
|
|
1249
1308
|
*
|
|
1250
1309
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
1310
|
+
*
|
|
1311
|
+
* @public
|
|
1251
1312
|
*/
|
|
1252
1313
|
@Exported
|
|
1253
1314
|
public getCollectibleTypesOfQuality(
|
|
@@ -1272,6 +1333,8 @@ export class ModdedElementSets extends Feature {
|
|
|
1272
1333
|
* order).
|
|
1273
1334
|
*
|
|
1274
1335
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
1336
|
+
*
|
|
1337
|
+
* @public
|
|
1275
1338
|
*/
|
|
1276
1339
|
@Exported
|
|
1277
1340
|
public getPlayerCollectiblesOfQuality(
|
|
@@ -1309,6 +1372,8 @@ export class ModdedElementSets extends Feature {
|
|
|
1309
1372
|
* not all card types will necessarily be present when a mod first loads (due to mod load order).
|
|
1310
1373
|
*
|
|
1311
1374
|
* In order to use this function, you must upgrade your mod with `ISCFeature.MODDED_ELEMENT_SETS`.
|
|
1375
|
+
*
|
|
1376
|
+
* @public
|
|
1312
1377
|
*/
|
|
1313
1378
|
@Exported
|
|
1314
1379
|
public getCardTypesOfType(
|
|
@@ -1350,6 +1415,7 @@ export class ModdedElementSets extends Feature {
|
|
|
1350
1415
|
* `RNG.Next` method will be called. If `undefined` is provided, it will default
|
|
1351
1416
|
* to a random seed.
|
|
1352
1417
|
* @param exceptions Optional. An array of cards to not select.
|
|
1418
|
+
* @public
|
|
1353
1419
|
*/
|
|
1354
1420
|
@Exported
|
|
1355
1421
|
public getRandomCardTypeOfType(
|
|
@@ -1380,6 +1446,7 @@ export class ModdedElementSets extends Feature {
|
|
|
1380
1446
|
* `RNG.Next` method will be called. If `undefined` is provided, it will default
|
|
1381
1447
|
* to a random seed.
|
|
1382
1448
|
* @param exceptions Optional. An array of cards to not select.
|
|
1449
|
+
* @public
|
|
1383
1450
|
*/
|
|
1384
1451
|
@Exported
|
|
1385
1452
|
public getRandomCard(
|
|
@@ -1406,6 +1473,7 @@ export class ModdedElementSets extends Feature {
|
|
|
1406
1473
|
* `RNG.Next` method will be called. If `undefined` is provided, it will default
|
|
1407
1474
|
* to a random seed.
|
|
1408
1475
|
* @param exceptions Optional. An array of runes to not select.
|
|
1476
|
+
* @public
|
|
1409
1477
|
*/
|
|
1410
1478
|
@Exported
|
|
1411
1479
|
public getRandomRune(
|
|
@@ -87,6 +87,7 @@ export class NoSirenSteal extends Feature {
|
|
|
87
87
|
* @param familiarVariant The familiar variant to blacklist.
|
|
88
88
|
* @param familiarSubType The sub-type to blacklist. Optional. The default is to blacklist all
|
|
89
89
|
* sub-types of the given variant.
|
|
90
|
+
* @public
|
|
90
91
|
*/
|
|
91
92
|
@Exported
|
|
92
93
|
public setFamiliarNoSirenSteal(
|
|
@@ -121,6 +121,12 @@ export class Pause extends Feature {
|
|
|
121
121
|
return 1;
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Helper function to check if the pause feature from `isaacscript-common` is currently
|
|
126
|
+
* pseudo-pausing the game.
|
|
127
|
+
*
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
124
130
|
@Exported
|
|
125
131
|
public isPaused(): boolean {
|
|
126
132
|
return v.run.isPseudoPaused;
|
|
@@ -136,6 +142,8 @@ export class Pause extends Feature {
|
|
|
136
142
|
* `ButtonAction.CONSOLE`)
|
|
137
143
|
*
|
|
138
144
|
* In order to use this function, you must upgrade your mod with `ISCFeature.PAUSE`.
|
|
145
|
+
*
|
|
146
|
+
* @public
|
|
139
147
|
*/
|
|
140
148
|
@Exported
|
|
141
149
|
public pause(): void {
|
|
@@ -199,6 +207,8 @@ export class Pause extends Feature {
|
|
|
199
207
|
* Helper function to put things back to normal after the `pause` function was used.
|
|
200
208
|
*
|
|
201
209
|
* In order to use this function, you must upgrade your mod with `ISCFeature.PAUSE`.
|
|
210
|
+
*
|
|
211
|
+
* @public
|
|
202
212
|
*/
|
|
203
213
|
@Exported
|
|
204
214
|
public unpause(): void {
|
|
@@ -160,6 +160,7 @@ export class PersistentEntities extends Feature {
|
|
|
160
160
|
* @param removeEntity Optional. True by default. Set to false if you want to stop an entity from
|
|
161
161
|
* being persistent but you don't want to actually remove the
|
|
162
162
|
* currently-spawned entity from the room.
|
|
163
|
+
* @public
|
|
163
164
|
*/
|
|
164
165
|
@Exported
|
|
165
166
|
public removePersistentEntity(
|
|
@@ -199,6 +200,7 @@ export class PersistentEntities extends Feature {
|
|
|
199
200
|
*
|
|
200
201
|
* @returns An object containing the entity and the persistent entity index. You can use the index
|
|
201
202
|
* with the `removePersistentEntity` function.
|
|
203
|
+
* @public
|
|
202
204
|
*/
|
|
203
205
|
@Exported
|
|
204
206
|
public spawnPersistentEntity(
|
|
@@ -86,6 +86,7 @@ export class PlayerCollectibleTracking extends Feature {
|
|
|
86
86
|
* @param player The player to get the collectible types for.
|
|
87
87
|
* @param includeActiveCollectibles Optional. If true, will include all active collectibles.
|
|
88
88
|
* Default is true.
|
|
89
|
+
* @public
|
|
89
90
|
*/
|
|
90
91
|
@Exported
|
|
91
92
|
public getPlayerCollectibleTypes(
|
|
@@ -115,6 +116,8 @@ export class PlayerCollectibleTracking extends Feature {
|
|
|
115
116
|
*
|
|
116
117
|
* In order to use this function, you must upgrade your mod with
|
|
117
118
|
* `ISCFeature.PLAYER_COLLECTIBLE_TRACKING`.
|
|
119
|
+
*
|
|
120
|
+
* @public
|
|
118
121
|
*/
|
|
119
122
|
@Exported
|
|
120
123
|
public getPlayerLastPassiveCollectibleType(
|
|
@@ -66,6 +66,8 @@ export class PonyDetection extends Feature {
|
|
|
66
66
|
* Detecting this is difficult, as the temporary effect will disappear upon entering a new room.
|
|
67
67
|
*
|
|
68
68
|
* In order to use this function, you must upgrade your mod with `ISCFeature.PONY_DETECTION`.
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
69
71
|
*/
|
|
70
72
|
@Exported
|
|
71
73
|
public isPlayerUsingPony(player: EntityPlayer): boolean {
|
|
@@ -77,6 +79,8 @@ export class PonyDetection extends Feature {
|
|
|
77
79
|
* Detecting this is difficult, as the temporary effect will disappear upon entering a new room.
|
|
78
80
|
*
|
|
79
81
|
* In order to use this function, you must upgrade your mod with `ISCFeature.PONY_DETECTION`.
|
|
82
|
+
*
|
|
83
|
+
* @public
|
|
80
84
|
*/
|
|
81
85
|
@Exported
|
|
82
86
|
public anyPlayerUsingPony(): boolean {
|
|
@@ -6,6 +6,7 @@ import { Feature } from "../../private/Feature";
|
|
|
6
6
|
const v = {
|
|
7
7
|
room: {
|
|
8
8
|
roomClearGameFrame: undefined as int | undefined,
|
|
9
|
+
roomClearRenderFrame: undefined as int | undefined,
|
|
9
10
|
roomClearRoomFrame: undefined as int | undefined,
|
|
10
11
|
},
|
|
11
12
|
};
|
|
@@ -32,8 +33,10 @@ export class RoomClearFrame extends Feature {
|
|
|
32
33
|
const gameFrameCount = game.GetFrameCount();
|
|
33
34
|
const room = game.GetRoom();
|
|
34
35
|
const roomFrameCount = room.GetFrameCount();
|
|
36
|
+
const renderFrameCount = Isaac.GetFrameCount();
|
|
35
37
|
|
|
36
38
|
v.room.roomClearGameFrame = gameFrameCount;
|
|
39
|
+
v.room.roomClearRenderFrame = renderFrameCount;
|
|
37
40
|
v.room.roomClearRoomFrame = roomFrameCount;
|
|
38
41
|
};
|
|
39
42
|
|
|
@@ -41,21 +44,44 @@ export class RoomClearFrame extends Feature {
|
|
|
41
44
|
* Helper function to get the game frame (i.e. `Game.GetFrameCount`) of the last time that this
|
|
42
45
|
* room was cleared. Returns undefined if the room has never been cleared.
|
|
43
46
|
*
|
|
47
|
+
* Note that if the room is left, all room clear tracking for it will be discarded.
|
|
48
|
+
*
|
|
44
49
|
* In order to use this function, you must upgrade your mod with `ISCFeature.ROOM_CLEAR_FRAME`.
|
|
50
|
+
*
|
|
51
|
+
* @public
|
|
45
52
|
*/
|
|
46
53
|
@Exported
|
|
47
54
|
public getRoomClearGameFrame(): int | undefined {
|
|
48
55
|
return v.room.roomClearGameFrame;
|
|
49
56
|
}
|
|
50
57
|
|
|
58
|
+
/**
|
|
59
|
+
* Helper function to get the render frame (i.e. `Isaac.GetFrameCount`) of the last time that this
|
|
60
|
+
* room was cleared. Returns undefined if the room has never been cleared.
|
|
61
|
+
*
|
|
62
|
+
* Note that if the room is left, all room clear tracking for it will be discarded.
|
|
63
|
+
*
|
|
64
|
+
* In order to use this function, you must upgrade your mod with `ISCFeature.ROOM_CLEAR_FRAME`.
|
|
65
|
+
*
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
@Exported
|
|
69
|
+
public getRoomClearRenderFrame(): int | undefined {
|
|
70
|
+
return v.room.roomClearRenderFrame;
|
|
71
|
+
}
|
|
72
|
+
|
|
51
73
|
/**
|
|
52
74
|
* Helper function to get the room frame (i.e. `Room.GetFrameCount`) of the last time that this
|
|
53
75
|
* room was cleared. Returns undefined if the room has never been cleared.
|
|
54
76
|
*
|
|
77
|
+
* Note that if the room is left, all room clear tracking for it will be discarded.
|
|
78
|
+
*
|
|
55
79
|
* In order to use this function, you must upgrade your mod with `ISCFeature.ROOM_CLEAR_FRAME`.
|
|
80
|
+
*
|
|
81
|
+
* @public
|
|
56
82
|
*/
|
|
57
83
|
@Exported
|
|
58
84
|
public getRoomClearRoomFrame(): int | undefined {
|
|
59
|
-
return v.room.
|
|
85
|
+
return v.room.roomClearRoomFrame;
|
|
60
86
|
}
|
|
61
87
|
}
|