isaacscript-common 87.8.2 → 87.9.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/ModFeature.d.ts.map +1 -1
- package/dist/classes/ModFeature.js +2 -0
- package/dist/classes/ModUpgraded.d.ts.map +1 -1
- package/dist/classes/ModUpgraded.js +1 -0
- package/dist/classes/features/other/CustomPickups.d.ts +6 -5
- package/dist/classes/features/other/CustomPickups.d.ts.map +1 -1
- package/dist/classes/features/other/CustomPickups.js +10 -9
- package/dist/classes/features/other/CustomPickups.lua +5 -5
- package/dist/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
- package/dist/classes/features/other/CustomTrapdoors.js +4 -1
- package/dist/classes/features/other/CustomTrapdoors.lua +3 -1
- package/dist/classes/features/other/FastReset.d.ts.map +1 -1
- package/dist/classes/features/other/FastReset.js +5 -1
- package/dist/classes/features/other/FastReset.lua +4 -1
- package/dist/classes/features/other/Pause.d.ts.map +1 -1
- package/dist/classes/features/other/Pause.js +11 -1
- package/dist/classes/features/other/Pause.lua +14 -3
- package/dist/classes/features/other/saveDataManager/restoreDefaults.js +1 -1
- package/dist/classes/features/other/saveDataManager/restoreDefaults.lua +1 -1
- package/dist/core/constants.d.ts +2 -0
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +2 -0
- package/dist/core/constants.lua +2 -0
- package/dist/enums/ModCallbackCustom.d.ts +10 -8
- package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/enums/ModCallbackCustom.js +10 -8
- package/dist/functions/bosses.d.ts +2 -2
- package/dist/functions/bosses.d.ts.map +1 -1
- package/dist/functions/bosses.js +2 -2
- package/dist/functions/deepCopyTests.js +10 -16
- package/dist/functions/deepCopyTests.lua +8 -16
- package/dist/functions/entities.d.ts +4 -4
- package/dist/functions/entities.d.ts.map +1 -1
- package/dist/functions/entities.js +4 -4
- package/dist/functions/entitiesSpecific.d.ts +20 -20
- package/dist/functions/entitiesSpecific.d.ts.map +1 -1
- package/dist/functions/entitiesSpecific.js +20 -20
- package/dist/functions/pickupsSpecific.d.ts +18 -18
- package/dist/functions/pickupsSpecific.d.ts.map +1 -1
- package/dist/functions/pickupsSpecific.js +18 -18
- package/dist/functions/playerCollectibles.d.ts.map +1 -1
- package/dist/functions/playerCollectibles.js +1 -3
- package/dist/functions/playerCollectibles.lua +1 -1
- package/dist/index.rollup.d.ts +62 -57
- package/dist/isaacscript-common.lua +676 -46
- package/dist/objects/backdropTypeToRockAltType.d.ts +2 -0
- package/dist/objects/backdropTypeToRockAltType.d.ts.map +1 -1
- package/dist/objects/backdropTypeToRockAltType.js +2 -0
- package/dist/objects/backdropTypeToRockAltType.lua +3 -1
- package/dist/objects/roomTypeNames.d.ts +1 -0
- package/dist/objects/roomTypeNames.d.ts.map +1 -1
- package/dist/objects/roomTypeNames.js +1 -0
- package/dist/objects/roomTypeNames.lua +2 -1
- package/dist/objects/roomTypeSpecialGotoPrefixes.d.ts +1 -0
- package/dist/objects/roomTypeSpecialGotoPrefixes.d.ts.map +1 -1
- package/dist/objects/roomTypeSpecialGotoPrefixes.js +1 -0
- package/dist/objects/roomTypeSpecialGotoPrefixes.lua +2 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +6 -6
- package/src/classes/ModFeature.ts +2 -0
- package/src/classes/ModUpgraded.ts +1 -0
- package/src/classes/features/other/CustomPickups.ts +25 -12
- package/src/classes/features/other/CustomTrapdoors.ts +5 -2
- package/src/classes/features/other/FastReset.ts +5 -1
- package/src/classes/features/other/Pause.ts +15 -2
- package/src/classes/features/other/saveDataManager/restoreDefaults.ts +1 -1
- package/src/core/constants.ts +2 -0
- package/src/enums/ModCallbackCustom.ts +10 -8
- package/src/functions/bosses.ts +3 -3
- package/src/functions/deepCopyTests.ts +10 -16
- package/src/functions/entities.ts +6 -6
- package/src/functions/entitiesSpecific.ts +30 -30
- package/src/functions/pickupsSpecific.ts +27 -27
- package/src/functions/playerCollectibles.ts +1 -3
- package/src/objects/backdropTypeToRockAltType.ts +2 -0
- package/src/objects/roomTypeNames.ts +1 -0
- package/src/objects/roomTypeSpecialGotoPrefixes.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pickupsSpecific.d.ts","sourceRoot":"","sources":["../../src/functions/pickupsSpecific.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,QAAQ,EACR,WAAW,EACX,eAAe,EACf,YAAY,EACZ,UAAU,EACV,SAAS,EACT,WAAW,EACX,WAAW,EACZ,MAAM,8BAA8B,CAAC;AAMtC;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,cAAc,GAAE,cAAc,GAAG,CAAC,CAAM,GACvC,SAAS,mBAAmB,EAAE,CAKhC;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,WAAW,GAAE,WAAW,GAAG,CAAC,CAAM,GACjC,SAAS,gBAAgB,EAAE,CAE7B;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CACtB,QAAQ,GAAE,QAAQ,GAAG,CAAC,CAAM,GAC3B,SAAS,gBAAgB,EAAE,CAE7B;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,OAAO,SAAK,GAAG,SAAS,YAAY,EAAE,CAS/D;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CACtB,WAAW,GAAE,WAAW,GAAG,CAAC,CAAM,GACjC,SAAS,gBAAgB,EAAE,CAE7B;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,eAAe,GAAE,eAAe,GAAG,CAAC,CAAM,GACzC,SAAS,uBAAuB,EAAE,CAKpC;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,YAAY,GAAE,YAAY,GAAG,CAAC,CAAM,GACnC,SAAS,iBAAiB,EAAE,CAE9B;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CACrB,UAAU,GAAE,UAAU,GAAG,CAAC,CAAM,GAC/B,SAAS,eA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AG,GAAG,EACjC,SAAS,EAAE,IAAI,GAAG,GAAG,EACrB,QAAQ,GAAE,MAAmB,EAC7B,OAAO,CAAC,EAAE,MAAM,GACf,mBAAmB,CAQrB"}
|
|
@@ -277,99 +277,99 @@ function removeAllTrinkets(trinketType, cap) {
|
|
|
277
277
|
/**
|
|
278
278
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.LIL_BATTERY` (90).
|
|
279
279
|
*/
|
|
280
|
-
function spawnBattery(batterySubType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
280
|
+
function spawnBattery(batterySubType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
281
281
|
return (0, entitiesSpecific_1.spawnPickup)(isaac_typescript_definitions_1.PickupVariant.LIL_BATTERY, batterySubType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
282
282
|
}
|
|
283
283
|
/**
|
|
284
284
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.LIL_BATTERY` (90)
|
|
285
285
|
* and a specific seed.
|
|
286
286
|
*/
|
|
287
|
-
function spawnBatteryWithSeed(batterySubType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
287
|
+
function spawnBatteryWithSeed(batterySubType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
288
288
|
return spawnBattery(batterySubType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
289
289
|
}
|
|
290
290
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.BOMB` (40). */
|
|
291
|
-
function spawnBombPickup(bombSubType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
291
|
+
function spawnBombPickup(bombSubType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
292
292
|
return (0, entitiesSpecific_1.spawnPickup)(isaac_typescript_definitions_1.PickupVariant.BOMB, bombSubType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
293
293
|
}
|
|
294
294
|
/**
|
|
295
295
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.BOMB` (40) and a
|
|
296
296
|
* specific seed.
|
|
297
297
|
*/
|
|
298
|
-
function spawnBombPickupWithSeed(bombSubType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
298
|
+
function spawnBombPickupWithSeed(bombSubType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
299
299
|
return spawnBombPickup(bombSubType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
300
300
|
}
|
|
301
301
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.CARD` (300). */
|
|
302
|
-
function spawnCard(cardType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
302
|
+
function spawnCard(cardType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
303
303
|
return (0, entitiesSpecific_1.spawnPickup)(isaac_typescript_definitions_1.PickupVariant.CARD, cardType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
304
304
|
}
|
|
305
305
|
/**
|
|
306
306
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.CARD` (300) and a
|
|
307
307
|
* specific seed.
|
|
308
308
|
*/
|
|
309
|
-
function spawnCardWithSeed(cardType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
309
|
+
function spawnCardWithSeed(cardType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
310
310
|
return spawnCard(cardType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
311
311
|
}
|
|
312
312
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.COIN` (20). */
|
|
313
|
-
function spawnCoin(coinSubType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
313
|
+
function spawnCoin(coinSubType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
314
314
|
return (0, entitiesSpecific_1.spawnPickup)(isaac_typescript_definitions_1.PickupVariant.COIN, coinSubType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
315
315
|
}
|
|
316
316
|
/**
|
|
317
317
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.COIN` (20) and a
|
|
318
318
|
* specific seed.
|
|
319
319
|
*/
|
|
320
|
-
function spawnCoinWithSeed(coinSubType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
320
|
+
function spawnCoinWithSeed(coinSubType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
321
321
|
return spawnCoin(coinSubType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
322
322
|
}
|
|
323
323
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.HEART` (10). */
|
|
324
|
-
function spawnHeart(heartSubType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
324
|
+
function spawnHeart(heartSubType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
325
325
|
return (0, entitiesSpecific_1.spawnPickup)(isaac_typescript_definitions_1.PickupVariant.HEART, heartSubType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
326
326
|
}
|
|
327
|
-
function spawnHeartWithSeed(heartSubType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
327
|
+
function spawnHeartWithSeed(heartSubType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
328
328
|
return spawnHeart(heartSubType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
329
329
|
}
|
|
330
330
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.KEY` (30). */
|
|
331
|
-
function spawnKey(keySubType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
331
|
+
function spawnKey(keySubType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
332
332
|
return (0, entitiesSpecific_1.spawnPickup)(isaac_typescript_definitions_1.PickupVariant.KEY, keySubType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
333
333
|
}
|
|
334
334
|
/**
|
|
335
335
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.KEY` (30) and a
|
|
336
336
|
* specific seed.
|
|
337
337
|
*/
|
|
338
|
-
function spawnKeyWithSeed(keySubType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
338
|
+
function spawnKeyWithSeed(keySubType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
339
339
|
return spawnKey(keySubType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
340
340
|
}
|
|
341
341
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.PILL` (70). */
|
|
342
|
-
function spawnPill(pillColor, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
342
|
+
function spawnPill(pillColor, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
343
343
|
return (0, entitiesSpecific_1.spawnPickup)(isaac_typescript_definitions_1.PickupVariant.PILL, pillColor, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
344
344
|
}
|
|
345
345
|
/**
|
|
346
346
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.PILL` (70) and a
|
|
347
347
|
* specific seed.
|
|
348
348
|
*/
|
|
349
|
-
function spawnPillWithSeed(pillColor, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
349
|
+
function spawnPillWithSeed(pillColor, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
350
350
|
return spawnPill(pillColor, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
351
351
|
}
|
|
352
352
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.SACK` (69). */
|
|
353
|
-
function spawnSack(sackSubType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
353
|
+
function spawnSack(sackSubType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
354
354
|
return (0, entitiesSpecific_1.spawnPickup)(isaac_typescript_definitions_1.PickupVariant.SACK, sackSubType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
355
355
|
}
|
|
356
356
|
/**
|
|
357
357
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.SACK` (69) and a
|
|
358
358
|
* specific seed.
|
|
359
359
|
*/
|
|
360
|
-
function spawnSackWithSeed(sackSubType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
360
|
+
function spawnSackWithSeed(sackSubType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
361
361
|
return spawnSack(sackSubType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
362
362
|
}
|
|
363
363
|
/**
|
|
364
364
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.TRINKET` (350).
|
|
365
365
|
*/
|
|
366
|
-
function spawnTrinket(trinketType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner
|
|
366
|
+
function spawnTrinket(trinketType, positionOrGridIndex, velocity = constants_1.VectorZero, spawner, seedOrRNG) {
|
|
367
367
|
return (0, entitiesSpecific_1.spawnPickup)(isaac_typescript_definitions_1.PickupVariant.TRINKET, trinketType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
368
368
|
}
|
|
369
369
|
/**
|
|
370
370
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.TRINKET` (350) and
|
|
371
371
|
* a specific seed.
|
|
372
372
|
*/
|
|
373
|
-
function spawnTrinketWithSeed(trinketType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner
|
|
373
|
+
function spawnTrinketWithSeed(trinketType, positionOrGridIndex, seedOrRNG, velocity = constants_1.VectorZero, spawner) {
|
|
374
374
|
return spawnTrinket(trinketType, positionOrGridIndex, velocity, spawner, seedOrRNG);
|
|
375
375
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playerCollectibles.d.ts","sourceRoot":"","sources":["../../src/functions/playerCollectibles.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,eAAe,EAEhB,MAAM,8BAA8B,CAAC;AAStC;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,YAAY,EACpB,GAAG,gBAAgB,EAAE,SAAS,eAAe,EAAE,GAC9C,IAAI,CAIN;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,eAAe,EAAE,eAAe,GAC/B,IAAI,CAON;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,eAAe,EAAE,eAAe,EAChC,eAAe,CAAC,EAAE,OAAO,GACxB,OAAO,CAMT;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,YAAY,EACpB,eAAe,EAAE,eAAe,GAC/B,SAAS,UAAU,EAAE,CAKvB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"playerCollectibles.d.ts","sourceRoot":"","sources":["../../src/functions/playerCollectibles.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,eAAe,EAEhB,MAAM,8BAA8B,CAAC;AAStC;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,YAAY,EACpB,GAAG,gBAAgB,EAAE,SAAS,eAAe,EAAE,GAC9C,IAAI,CAIN;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,eAAe,EAAE,eAAe,GAC/B,IAAI,CAON;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACr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C9C,IAAI,CAIN;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,YAAY,EACpB,eAAe,EAAE,eAAe,GAC/B,IAAI,CAON;AAED;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAC7C,GAAG,gBAAgB,EAAE,SAAS,eAAe,EAAE,GAC9C,IAAI,CAQN;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,YAAY,EACpB,eAAe,EAAE,eAAe,EAChC,UAAU,aAAqB,EAC/B,MAAM,CAAC,EAAE,GAAG,EACZ,WAAW,UAAQ,GAClB,IAAI,CA2DN;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,YAAY,EACpB,eAAe,EAAE,eAAe,GAC/B,IAAI,CAEN"}
|
|
@@ -73,9 +73,7 @@ function getActiveItemSlots(player, collectibleType) {
|
|
|
73
73
|
*/
|
|
74
74
|
function getAdjustedPrice(basePrice) {
|
|
75
75
|
const numSteamSales = getTotalPlayerCollectibles(isaac_typescript_definitions_1.CollectibleType.STEAM_SALE);
|
|
76
|
-
return numSteamSales
|
|
77
|
-
? Math.floor(basePrice / (numSteamSales + 1))
|
|
78
|
-
: basePrice;
|
|
76
|
+
return Math.ceil(basePrice / (numSteamSales + 1));
|
|
79
77
|
}
|
|
80
78
|
/**
|
|
81
79
|
* Helper function to return the total amount of collectibles that a player has that match the
|
|
@@ -83,7 +83,7 @@ end
|
|
|
83
83
|
-- the prices for items in the shop would be the same as if Isaac had two Steam Sales.)
|
|
84
84
|
function ____exports.getAdjustedPrice(self, basePrice)
|
|
85
85
|
local numSteamSales = ____exports.getTotalPlayerCollectibles(nil, CollectibleType.STEAM_SALE)
|
|
86
|
-
return
|
|
86
|
+
return math.ceil(basePrice / (numSteamSales + 1))
|
|
87
87
|
end
|
|
88
88
|
--- Helper function to return the total amount of collectibles that a player has that match the
|
|
89
89
|
-- collectible type(s) provided.
|
package/dist/index.rollup.d.ts
CHANGED
|
@@ -2175,13 +2175,14 @@ declare class CustomPickups extends Feature {
|
|
|
2175
2175
|
* @param subType The sub-type for the corresponding custom pickup.
|
|
2176
2176
|
* @param collectFunc The function to run when the player collects this pickup.
|
|
2177
2177
|
* @param collisionFunc Optional. The function to run when a player collides with the pickup.
|
|
2178
|
-
* Default is a function that always returns
|
|
2179
|
-
* will always immediately collect the pickup when they collide with
|
|
2180
|
-
* Specify this function if your pickup should only be able to be
|
|
2181
|
-
* under certain conditions.
|
|
2178
|
+
* Default is a function that always returns undefined, meaning that the
|
|
2179
|
+
* player will always immediately collect the pickup when they collide with
|
|
2180
|
+
* it. Specify this function if your pickup should only be able to be
|
|
2181
|
+
* collected under certain conditions. Return value acts similar to
|
|
2182
|
+
* `ModCallback.PRE_PICKUP_COLLISION`.
|
|
2182
2183
|
* @public
|
|
2183
2184
|
*/
|
|
2184
|
-
registerCustomPickup(pickupVariantCustom: PickupVariant, subType: int, collectFunc: (this: void, player: EntityPlayer) => void, collisionFunc?: (this: void, player: EntityPlayer) => boolean): void;
|
|
2185
|
+
registerCustomPickup(pickupVariantCustom: PickupVariant, subType: int, collectFunc: (this: void, pickup: EntityPickup, player: EntityPlayer) => void, collisionFunc?: (this: void, pickup: EntityPickup, player: EntityPlayer) => boolean | undefined): void;
|
|
2185
2186
|
}
|
|
2186
2187
|
|
|
2187
2188
|
declare class CustomRevive extends Feature {
|
|
@@ -3745,6 +3746,8 @@ export declare const DICE_FLOOR_TRIGGER_SQUARE_SIZE = 75;
|
|
|
3745
3746
|
/**
|
|
3746
3747
|
* An array containing every valid `Dimension`, not including `Dimension.CURRENT`. (This is derived
|
|
3747
3748
|
* from the `NUM_DIMENSIONS` constant.)
|
|
3749
|
+
*
|
|
3750
|
+
* We cannot use the values of the `Dimension` enum because it includes -1.
|
|
3748
3751
|
*/
|
|
3749
3752
|
export declare const DIMENSIONS: readonly Dimension[];
|
|
3750
3753
|
|
|
@@ -11846,10 +11849,11 @@ export declare enum ModCallbackCustom {
|
|
|
11846
11849
|
*
|
|
11847
11850
|
* `POST_GAME_STARTED_REORDERED` --> `POST_NEW_LEVEL_REORDERED` --> `POST_NEW_ROOM_REORDERED`
|
|
11848
11851
|
*
|
|
11849
|
-
*
|
|
11850
|
-
*
|
|
11851
|
-
*
|
|
11852
|
-
*
|
|
11852
|
+
* You must provide a third argument:
|
|
11853
|
+
*
|
|
11854
|
+
* - Pass true if you want the callback to only fire if the run is continued.
|
|
11855
|
+
* - Pass false if you want the callback to only fire when the run is not continued.
|
|
11856
|
+
* - Pass undefined if you want the callback to fire in both situations.
|
|
11853
11857
|
*
|
|
11854
11858
|
* (The third argument for this callback is mandatory in order to prevent users from shooting
|
|
11855
11859
|
* themselves in the foot with respect to logic unexpectedly being executed on continued runs.)
|
|
@@ -11865,10 +11869,11 @@ export declare enum ModCallbackCustom {
|
|
|
11865
11869
|
* new run has started (or continued), but you can be sure that all new-run-related initialization
|
|
11866
11870
|
* has been completed.
|
|
11867
11871
|
*
|
|
11868
|
-
*
|
|
11869
|
-
*
|
|
11870
|
-
*
|
|
11871
|
-
*
|
|
11872
|
+
* You must provide a third argument:
|
|
11873
|
+
*
|
|
11874
|
+
* - Pass true if you want the callback to only fire if the run is continued.
|
|
11875
|
+
* - Pass false if you want the callback to only fire when the run is not continued.
|
|
11876
|
+
* - Pass undefined if you want the callback to fire in both situations.
|
|
11872
11877
|
*
|
|
11873
11878
|
* (The third argument for this callback is mandatory in order to prevent users from shooting
|
|
11874
11879
|
* themselves in the foot with respect to logic unexpectedly being executed on continued runs.)
|
|
@@ -16423,7 +16428,7 @@ export declare function removeAllLasers(laserVariant?: LaserVariant | -1, subTyp
|
|
|
16423
16428
|
* @param cap Optional. If specified, will only remove the given amount of collectibles.
|
|
16424
16429
|
* @returns An array of the entities that were removed.
|
|
16425
16430
|
*/
|
|
16426
|
-
export declare function removeAllMatchingEntities(entityType: EntityType, entityVariant?: number, entitySubType?: number, cap?: int
|
|
16431
|
+
export declare function removeAllMatchingEntities(entityType: EntityType, entityVariant?: number, entitySubType?: number, cap?: int): readonly Entity[];
|
|
16427
16432
|
|
|
16428
16433
|
/**
|
|
16429
16434
|
* Helper function to remove all of the grid entities in the room that match the grid entity types
|
|
@@ -18355,33 +18360,33 @@ export declare type SoulHeartType = HeartSubType.SOUL | HeartSubType.BLACK | Hea
|
|
|
18355
18360
|
* entity. Default is undefined, which will make the entity spawn with a random
|
|
18356
18361
|
* seed.
|
|
18357
18362
|
*/
|
|
18358
|
-
export declare function spawn(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18363
|
+
export declare function spawn(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): Entity;
|
|
18359
18364
|
|
|
18360
18365
|
/**
|
|
18361
18366
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.LIL_BATTERY` (90).
|
|
18362
18367
|
*/
|
|
18363
|
-
export declare function spawnBattery(batterySubType: BatterySubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18368
|
+
export declare function spawnBattery(batterySubType: BatterySubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupBattery;
|
|
18364
18369
|
|
|
18365
18370
|
/**
|
|
18366
18371
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.LIL_BATTERY` (90)
|
|
18367
18372
|
* and a specific seed.
|
|
18368
18373
|
*/
|
|
18369
|
-
export declare function spawnBatteryWithSeed(batterySubType: BatterySubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18374
|
+
export declare function spawnBatteryWithSeed(batterySubType: BatterySubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupBattery;
|
|
18370
18375
|
|
|
18371
18376
|
/** Helper function to spawn a `EntityType.BOMB` (4). */
|
|
18372
|
-
export declare function spawnBomb(bombVariant: BombVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18377
|
+
export declare function spawnBomb(bombVariant: BombVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityBomb;
|
|
18373
18378
|
|
|
18374
18379
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.BOMB` (40). */
|
|
18375
|
-
export declare function spawnBombPickup(bombSubType: BombSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18380
|
+
export declare function spawnBombPickup(bombSubType: BombSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupBomb;
|
|
18376
18381
|
|
|
18377
18382
|
/**
|
|
18378
18383
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.BOMB` (40) and a
|
|
18379
18384
|
* specific seed.
|
|
18380
18385
|
*/
|
|
18381
|
-
export declare function spawnBombPickupWithSeed(bombSubType: BombSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18386
|
+
export declare function spawnBombPickupWithSeed(bombSubType: BombSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupBomb;
|
|
18382
18387
|
|
|
18383
18388
|
/** Helper function to spawn a `EntityType.BOMB` (4) with a specific seed. */
|
|
18384
|
-
export declare function spawnBombWithSeed(bombVariant: BombVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18389
|
+
export declare function spawnBombWithSeed(bombVariant: BombVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityBomb;
|
|
18385
18390
|
|
|
18386
18391
|
/**
|
|
18387
18392
|
* Helper function to spawn a boss.
|
|
@@ -18393,32 +18398,32 @@ export declare function spawnBombWithSeed(bombVariant: BombVariant, subType: int
|
|
|
18393
18398
|
* Gurglings/Turdlings with 2 copies, and other multi-segment bosses with 4 segments. You can
|
|
18394
18399
|
* customize this via the "numSegments" argument.
|
|
18395
18400
|
*/
|
|
18396
|
-
export declare function spawnBoss(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18401
|
+
export declare function spawnBoss(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG, numSegments?: int): EntityNPC;
|
|
18397
18402
|
|
|
18398
18403
|
/**
|
|
18399
18404
|
* Helper function to spawn a boss with a specific seed.
|
|
18400
18405
|
*
|
|
18401
18406
|
* For more information, see the documentation for the `spawnBoss` function.
|
|
18402
18407
|
*/
|
|
18403
|
-
export declare function spawnBossWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18408
|
+
export declare function spawnBossWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity, numSegments?: int): EntityNPC;
|
|
18404
18409
|
|
|
18405
18410
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.CARD` (300). */
|
|
18406
|
-
export declare function spawnCard(cardType: CardType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18411
|
+
export declare function spawnCard(cardType: CardType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupCard;
|
|
18407
18412
|
|
|
18408
18413
|
/**
|
|
18409
18414
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.CARD` (300) and a
|
|
18410
18415
|
* specific seed.
|
|
18411
18416
|
*/
|
|
18412
|
-
export declare function spawnCardWithSeed(cardType: CardType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18417
|
+
export declare function spawnCardWithSeed(cardType: CardType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupCard;
|
|
18413
18418
|
|
|
18414
18419
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.COIN` (20). */
|
|
18415
|
-
export declare function spawnCoin(coinSubType: CoinSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18420
|
+
export declare function spawnCoin(coinSubType: CoinSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupCoin;
|
|
18416
18421
|
|
|
18417
18422
|
/**
|
|
18418
18423
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.COIN` (20) and a
|
|
18419
18424
|
* specific seed.
|
|
18420
18425
|
*/
|
|
18421
|
-
export declare function spawnCoinWithSeed(coinSubType: CoinSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18426
|
+
export declare function spawnCoinWithSeed(coinSubType: CoinSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupCoin;
|
|
18422
18427
|
|
|
18423
18428
|
/**
|
|
18424
18429
|
* Helper function to spawn a collectible.
|
|
@@ -18481,10 +18486,10 @@ export declare function spawnDoor(gridIndexOrPosition: int | Vector): GridEntity
|
|
|
18481
18486
|
export declare function spawnDoorWithVariant(doorVariant: DoorVariant, gridIndexOrPosition: int | Vector): GridEntityDoor | undefined;
|
|
18482
18487
|
|
|
18483
18488
|
/** Helper function to spawn a `EntityType.EFFECT` (1000). */
|
|
18484
|
-
export declare function spawnEffect(effectVariant: EffectVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18489
|
+
export declare function spawnEffect(effectVariant: EffectVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityEffect;
|
|
18485
18490
|
|
|
18486
18491
|
/** Helper function to spawn a `EntityType.EFFECT` (1000) with a specific seed. */
|
|
18487
|
-
export declare function spawnEffectWithSeed(effectVariant: EffectVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18492
|
+
export declare function spawnEffectWithSeed(effectVariant: EffectVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityEffect;
|
|
18488
18493
|
|
|
18489
18494
|
/**
|
|
18490
18495
|
* Helper function to spawn an empty collectible. Doing this is tricky since spawning a collectible
|
|
@@ -18517,7 +18522,7 @@ export declare function spawnEmptyCollectible(positionOrGridIndex: Vector | int,
|
|
|
18517
18522
|
* entity. Default is undefined, which will make the entity spawn with a random
|
|
18518
18523
|
* seed using the `Isaac.Spawn` method.
|
|
18519
18524
|
*/
|
|
18520
|
-
export declare function spawnEntityID(entityID: EntityID, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18525
|
+
export declare function spawnEntityID(entityID: EntityID, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): Entity;
|
|
18521
18526
|
|
|
18522
18527
|
/**
|
|
18523
18528
|
* Helper function to spawn a `EntityType.FAMILIAR` (3).
|
|
@@ -18525,10 +18530,10 @@ export declare function spawnEntityID(entityID: EntityID, positionOrGridIndex: V
|
|
|
18525
18530
|
* If you are trying to implement a custom familiar, you probably want to use the
|
|
18526
18531
|
* `checkFamiliarFromCollectibles` helper function instead.
|
|
18527
18532
|
*/
|
|
18528
|
-
export declare function spawnFamiliar(familiarVariant: FamiliarVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18533
|
+
export declare function spawnFamiliar(familiarVariant: FamiliarVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityFamiliar;
|
|
18529
18534
|
|
|
18530
18535
|
/** Helper function to spawn a `EntityType.FAMILIAR` (3) with a specific seed. */
|
|
18531
|
-
export declare function spawnFamiliarWithSeed(familiarVariant: FamiliarVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18536
|
+
export declare function spawnFamiliarWithSeed(familiarVariant: FamiliarVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityFamiliar;
|
|
18532
18537
|
|
|
18533
18538
|
/**
|
|
18534
18539
|
* Helper function to spawn a giant poop. This is performed by spawning each of the four quadrant
|
|
@@ -18581,30 +18586,30 @@ export declare function spawnGridEntity(gridEntityType: GridEntityType, gridInde
|
|
|
18581
18586
|
export declare function spawnGridEntityWithVariant(gridEntityType: GridEntityType, variant: int, gridIndexOrPosition: int | Vector, removeExistingGridEntity?: boolean): GridEntity | undefined;
|
|
18582
18587
|
|
|
18583
18588
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.HEART` (10). */
|
|
18584
|
-
export declare function spawnHeart(heartSubType: HeartSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18589
|
+
export declare function spawnHeart(heartSubType: HeartSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupHeart;
|
|
18585
18590
|
|
|
18586
|
-
export declare function spawnHeartWithSeed(heartSubType: HeartSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18591
|
+
export declare function spawnHeartWithSeed(heartSubType: HeartSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupHeart;
|
|
18587
18592
|
|
|
18588
18593
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.KEY` (30). */
|
|
18589
|
-
export declare function spawnKey(keySubType: KeySubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18594
|
+
export declare function spawnKey(keySubType: KeySubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupKey;
|
|
18590
18595
|
|
|
18591
18596
|
/**
|
|
18592
18597
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.KEY` (30) and a
|
|
18593
18598
|
* specific seed.
|
|
18594
18599
|
*/
|
|
18595
|
-
export declare function spawnKeyWithSeed(keySubType: KeySubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18600
|
+
export declare function spawnKeyWithSeed(keySubType: KeySubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupKey;
|
|
18596
18601
|
|
|
18597
18602
|
/** Helper function to spawn a `EntityType.KNIFE` (8). */
|
|
18598
|
-
export declare function spawnKnife(knifeVariant: KnifeVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18603
|
+
export declare function spawnKnife(knifeVariant: KnifeVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityKnife;
|
|
18599
18604
|
|
|
18600
18605
|
/** Helper function to spawn a `EntityType.KNIFE` (8) with a specific seed. */
|
|
18601
|
-
export declare function spawnKnifeWithSeed(knifeVariant: KnifeVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18606
|
+
export declare function spawnKnifeWithSeed(knifeVariant: KnifeVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityKnife;
|
|
18602
18607
|
|
|
18603
18608
|
/** Helper function to spawn a `EntityType.LASER` (7). */
|
|
18604
|
-
export declare function spawnLaser(laserVariant: LaserVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18609
|
+
export declare function spawnLaser(laserVariant: LaserVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityLaser;
|
|
18605
18610
|
|
|
18606
18611
|
/** Helper function to spawn a `EntityType.LASER` (7) with a specific seed. */
|
|
18607
|
-
export declare function spawnLaserWithSeed(laserVariant: LaserVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18612
|
+
export declare function spawnLaserWithSeed(laserVariant: LaserVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityLaser;
|
|
18608
18613
|
|
|
18609
18614
|
/**
|
|
18610
18615
|
* Helper function to spawn an NPC.
|
|
@@ -18612,7 +18617,7 @@ export declare function spawnLaserWithSeed(laserVariant: LaserVariant, subType:
|
|
|
18612
18617
|
* Note that if you pass a non-NPC `EntityType` to this function, it will cause a run-time error,
|
|
18613
18618
|
* since the `Entity.ToNPC` method will return undefined.
|
|
18614
18619
|
*/
|
|
18615
|
-
export declare function spawnNPC(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18620
|
+
export declare function spawnNPC(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityNPC;
|
|
18616
18621
|
|
|
18617
18622
|
/**
|
|
18618
18623
|
* Helper function to spawn an NPC with a specific seed.
|
|
@@ -18620,22 +18625,22 @@ export declare function spawnNPC(entityType: EntityType, variant: int, subType:
|
|
|
18620
18625
|
* Note that if you pass a non-NPC `EntityType` to this function, it will cause a run-time error,
|
|
18621
18626
|
* since the `Entity.ToNPC` method will return undefined.
|
|
18622
18627
|
*/
|
|
18623
|
-
export declare function spawnNPCWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18628
|
+
export declare function spawnNPCWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityNPC;
|
|
18624
18629
|
|
|
18625
18630
|
/** Helper function to spawn a `EntityType.PICKUP` (5). */
|
|
18626
|
-
export declare function spawnPickup(pickupVariant: PickupVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18631
|
+
export declare function spawnPickup(pickupVariant: PickupVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickup;
|
|
18627
18632
|
|
|
18628
18633
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with a specific seed. */
|
|
18629
|
-
export declare function spawnPickupWithSeed(pickupVariant: PickupVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18634
|
+
export declare function spawnPickupWithSeed(pickupVariant: PickupVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickup;
|
|
18630
18635
|
|
|
18631
18636
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.PILL` (70). */
|
|
18632
|
-
export declare function spawnPill(pillColor: PillColor, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18637
|
+
export declare function spawnPill(pillColor: PillColor, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupPill;
|
|
18633
18638
|
|
|
18634
18639
|
/**
|
|
18635
18640
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.PILL` (70) and a
|
|
18636
18641
|
* specific seed.
|
|
18637
18642
|
*/
|
|
18638
|
-
export declare function spawnPillWithSeed(pillColor: PillColor, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18643
|
+
export declare function spawnPillWithSeed(pillColor: PillColor, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupPill;
|
|
18639
18644
|
|
|
18640
18645
|
/** Helper function to spawn a `GridEntityType.DOOR` (16) with a specific variant. */
|
|
18641
18646
|
export declare function spawnPit(gridIndexOrPosition: int | Vector): GridEntityPit | undefined;
|
|
@@ -18656,10 +18661,10 @@ export declare function spawnPressurePlate(gridIndexOrPosition: int | Vector): G
|
|
|
18656
18661
|
export declare function spawnPressurePlateWithVariant(pressurePlateVariant: PressurePlateVariant, gridIndexOrPosition: int | Vector): GridEntityPressurePlate | undefined;
|
|
18657
18662
|
|
|
18658
18663
|
/** Helper function to spawn a `EntityType.PROJECTILE` (9). */
|
|
18659
|
-
export declare function spawnProjectile(projectileVariant: ProjectileVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18664
|
+
export declare function spawnProjectile(projectileVariant: ProjectileVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityProjectile;
|
|
18660
18665
|
|
|
18661
18666
|
/** Helper function to spawn a `EntityType.PROJECTILE` (9) with a specific seed. */
|
|
18662
|
-
export declare function spawnProjectileWithSeed(projectileVariant: ProjectileVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18667
|
+
export declare function spawnProjectileWithSeed(projectileVariant: ProjectileVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityProjectile;
|
|
18663
18668
|
|
|
18664
18669
|
/** Helper function to spawn a `GridEntityType.ROCK` (2). */
|
|
18665
18670
|
export declare function spawnRock(gridIndexOrPosition: int | Vector): GridEntityRock | undefined;
|
|
@@ -18770,19 +18775,19 @@ declare class SpawnRockAltRewards extends Feature {
|
|
|
18770
18775
|
export declare function spawnRockWithVariant(rockVariant: RockVariant, gridIndexOrPosition: int | Vector): GridEntityRock | undefined;
|
|
18771
18776
|
|
|
18772
18777
|
/** Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.SACK` (69). */
|
|
18773
|
-
export declare function spawnSack(sackSubType: SackSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18778
|
+
export declare function spawnSack(sackSubType: SackSubType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupSack;
|
|
18774
18779
|
|
|
18775
18780
|
/**
|
|
18776
18781
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.SACK` (69) and a
|
|
18777
18782
|
* specific seed.
|
|
18778
18783
|
*/
|
|
18779
|
-
export declare function spawnSackWithSeed(sackSubType: SackSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18784
|
+
export declare function spawnSackWithSeed(sackSubType: SackSubType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupSack;
|
|
18780
18785
|
|
|
18781
18786
|
/** Helper function to spawn a `EntityType.SLOT` (6). */
|
|
18782
|
-
export declare function spawnSlot(slotVariant: SlotVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18787
|
+
export declare function spawnSlot(slotVariant: SlotVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntitySlot;
|
|
18783
18788
|
|
|
18784
18789
|
/** Helper function to spawn a `EntityType.SLOT` (6) with a specific seed. */
|
|
18785
|
-
export declare function spawnSlotWithSeed(slotVariant: SlotVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18790
|
+
export declare function spawnSlotWithSeed(slotVariant: SlotVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntitySlot;
|
|
18786
18791
|
|
|
18787
18792
|
/** Helper function to spawn a `GridEntityType.SPIKES` (8). */
|
|
18788
18793
|
export declare function spawnSpikes(gridIndexOrPosition: int | Vector): GridEntitySpikes | undefined;
|
|
@@ -18791,10 +18796,10 @@ export declare function spawnSpikes(gridIndexOrPosition: int | Vector): GridEnti
|
|
|
18791
18796
|
export declare function spawnSpikesWithVariant(variant: int, gridIndexOrPosition: int | Vector): GridEntitySpikes | undefined;
|
|
18792
18797
|
|
|
18793
18798
|
/** Helper function to spawn a `EntityType.TEAR` (2). */
|
|
18794
|
-
export declare function spawnTear(tearVariant: TearVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18799
|
+
export declare function spawnTear(tearVariant: TearVariant, subType: int, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityTear;
|
|
18795
18800
|
|
|
18796
18801
|
/** Helper function to spawn a `EntityType.EntityType` (2) with a specific seed. */
|
|
18797
|
-
export declare function spawnTearWithSeed(tearVariant: TearVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18802
|
+
export declare function spawnTearWithSeed(tearVariant: TearVariant, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityTear;
|
|
18798
18803
|
|
|
18799
18804
|
/** Helper function to spawn a `GridEntityType.TELEPORTER` (23). */
|
|
18800
18805
|
export declare function spawnTeleporter(gridIndexOrPosition: int | Vector): GridEntity | undefined;
|
|
@@ -18817,13 +18822,13 @@ export declare function spawnTrapdoorWithVariant(trapdoorVariant: TrapdoorVarian
|
|
|
18817
18822
|
/**
|
|
18818
18823
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.TRINKET` (350).
|
|
18819
18824
|
*/
|
|
18820
|
-
export declare function spawnTrinket(trinketType: TrinketType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity
|
|
18825
|
+
export declare function spawnTrinket(trinketType: TrinketType, positionOrGridIndex: Vector | int, velocity?: Vector, spawner?: Entity, seedOrRNG?: Seed | RNG): EntityPickupTrinket;
|
|
18821
18826
|
|
|
18822
18827
|
/**
|
|
18823
18828
|
* Helper function to spawn a `EntityType.PICKUP` (5) with variant `PickupVariant.TRINKET` (350) and
|
|
18824
18829
|
* a specific seed.
|
|
18825
18830
|
*/
|
|
18826
|
-
export declare function spawnTrinketWithSeed(trinketType: TrinketType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18831
|
+
export declare function spawnTrinketWithSeed(trinketType: TrinketType, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): EntityPickupTrinket;
|
|
18827
18832
|
|
|
18828
18833
|
/**
|
|
18829
18834
|
* Helper function to spawn a Void Portal. This is more complicated than simply spawning a trapdoor
|
|
@@ -18835,7 +18840,7 @@ export declare function spawnVoidPortal(gridIndex: int): GridEntity | undefined;
|
|
|
18835
18840
|
* Helper function to spawn an entity. Use this instead of the `Game.Spawn` method if you do not
|
|
18836
18841
|
* need to specify the velocity or spawner.
|
|
18837
18842
|
*/
|
|
18838
|
-
export declare function spawnWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity
|
|
18843
|
+
export declare function spawnWithSeed(entityType: EntityType, variant: int, subType: int, positionOrGridIndex: Vector | int, seedOrRNG: Seed | RNG, velocity?: Vector, spawner?: Entity): Entity;
|
|
18839
18844
|
|
|
18840
18845
|
/**
|
|
18841
18846
|
* Breaks a number into chunks of a given size. This is similar to the `String.split` method, but
|