isaacscript-common 72.1.0 → 72.2.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/index.rollup.d.ts +24 -1
- package/dist/isaacscript-common.lua +2232 -3
- package/dist/src/data/itempools.lua +2122 -0
- package/dist/src/functions/itemPool.d.ts +13 -0
- package/dist/src/functions/itemPool.d.ts.map +1 -1
- package/dist/src/functions/itemPool.lua +23 -0
- package/dist/src/functions/levelGrid.d.ts +7 -0
- package/dist/src/functions/levelGrid.d.ts.map +1 -1
- package/dist/src/functions/levelGrid.lua +8 -0
- package/dist/src/functions/run.d.ts +1 -1
- package/dist/src/functions/run.d.ts.map +1 -1
- package/dist/src/functions/run.lua +2 -2
- package/dist/src/maps/itemPoolTypeToItemPoolName.d.ts +35 -0
- package/dist/src/maps/itemPoolTypeToItemPoolName.d.ts.map +1 -0
- package/dist/src/maps/itemPoolTypeToItemPoolName.lua +38 -0
- package/dist/src/objects/itemPoolTypeToCollectibleTypesSet.d.ts +3 -0
- package/dist/src/objects/itemPoolTypeToCollectibleTypesSet.d.ts.map +1 -0
- package/dist/src/objects/itemPoolTypeToCollectibleTypesSet.lua +44 -0
- package/package.json +1 -1
- package/src/data/itempools.json +16625 -0
- package/src/data/itempools.xml +4180 -0
- package/src/functions/itemPool.ts +34 -0
- package/src/functions/levelGrid.ts +11 -0
- package/src/functions/run.ts +2 -2
- package/src/maps/itemPoolTypeToItemPoolName.ts +36 -0
- package/src/objects/itemPoolTypeToCollectibleTypesSet.ts +54 -0
package/dist/index.rollup.d.ts
CHANGED
|
@@ -981,7 +981,7 @@ export declare function angleToDirection(angleDegrees: int): Direction;
|
|
|
981
981
|
export declare type AnyClass = new () => object;
|
|
982
982
|
|
|
983
983
|
/** Alias for the `anySeedEffectEnabled` function. */
|
|
984
|
-
export declare function anyEasterEggEnabled(): boolean;
|
|
984
|
+
export declare function anyEasterEggEnabled(exceptions?: SeedEffect[]): boolean;
|
|
985
985
|
|
|
986
986
|
/**
|
|
987
987
|
* A type union that matches `Entity`, `EntityBomb`, `EntityEffect`, and so on.
|
|
@@ -5398,6 +5398,12 @@ export declare function getCrawlSpaces(crawlSpaceVariant?: CrawlSpaceVariant | -
|
|
|
5398
5398
|
*/
|
|
5399
5399
|
export declare function getCurseIDByName(name: string): LevelCurse;
|
|
5400
5400
|
|
|
5401
|
+
/**
|
|
5402
|
+
* Helper function to get the collectibles that are in a particular item pool at the beginning of a
|
|
5403
|
+
* vanilla run.
|
|
5404
|
+
*/
|
|
5405
|
+
export declare function getDefaultCollectibleTypesInItemPool(itemPoolType: ItemPoolType): Set<CollectibleType>;
|
|
5406
|
+
|
|
5401
5407
|
/**
|
|
5402
5408
|
* Helper function to get a set containing all of the global variable names that are contained
|
|
5403
5409
|
* within the Isaac environment by default.
|
|
@@ -5406,6 +5412,15 @@ export declare function getCurseIDByName(name: string): LevelCurse;
|
|
|
5406
5412
|
*/
|
|
5407
5413
|
export declare function getDefaultGlobals(): ReadonlySet<string>;
|
|
5408
5414
|
|
|
5415
|
+
/**
|
|
5416
|
+
* Helper function to get the item pools that a particular collectible starts in at the beginning of
|
|
5417
|
+
* a vanilla run.
|
|
5418
|
+
*
|
|
5419
|
+
* This function will automatically account for Greed Mode. In other words, it will not return the
|
|
5420
|
+
* "normal" item pools when playing in Greed Mode.
|
|
5421
|
+
*/
|
|
5422
|
+
export declare function getDefaultItemPoolsForCollectibleType(collectibleType: CollectibleType): ItemPoolType[];
|
|
5423
|
+
|
|
5409
5424
|
/**
|
|
5410
5425
|
* Returns the starting stat that Isaac (the default character) starts with. For example, if you
|
|
5411
5426
|
* pass this function `CacheFlag.DAMAGE`, it will return 3.5.
|
|
@@ -8465,6 +8480,14 @@ export declare function inDoubleTrouble(): boolean;
|
|
|
8465
8480
|
/** Helper function to determine if the current room index is equal to `GridRoom.GENESIS`. */
|
|
8466
8481
|
export declare function inGenesisRoom(): boolean;
|
|
8467
8482
|
|
|
8483
|
+
/**
|
|
8484
|
+
* Helper function to determine if the current room grid index is inside of the normal 13x13 level
|
|
8485
|
+
* grid.
|
|
8486
|
+
*
|
|
8487
|
+
* For example, Devil Rooms and the Mega Satan room are not considered to be inside the grid.
|
|
8488
|
+
*/
|
|
8489
|
+
export declare function inGrid(): boolean;
|
|
8490
|
+
|
|
8468
8491
|
/**
|
|
8469
8492
|
* Helper function to check if the current room is either the left Home closet (behind the red door)
|
|
8470
8493
|
* or the right Home closet (with one random pickup).
|