isaacscript-common 72.1.1 → 72.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/index.rollup.d.ts +29 -0
- package/dist/isaacscript-common.lua +2234 -1
- package/dist/src/data/itempools.lua +2122 -0
- package/dist/src/functions/itemPool.d.ts +18 -0
- package/dist/src/functions/itemPool.d.ts.map +1 -1
- package/dist/src/functions/itemPool.lua +29 -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/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 +47 -0
- package/src/functions/levelGrid.ts +11 -0
- package/src/maps/itemPoolTypeToItemPoolName.ts +36 -0
- package/src/objects/itemPoolTypeToCollectibleTypesSet.ts +54 -0
package/dist/index.rollup.d.ts
CHANGED
|
@@ -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).
|
|
@@ -9064,6 +9087,12 @@ export declare function isCoin(pickup: EntityPickup): pickup is EntityPickupCoin
|
|
|
9064
9087
|
/** For `PickupVariant.COLLECTIBLE` (100). */
|
|
9065
9088
|
export declare function isCollectible(pickup: EntityPickup): pickup is EntityPickupCollectible;
|
|
9066
9089
|
|
|
9090
|
+
/**
|
|
9091
|
+
* Helper function to check if a particular collectibles is in a particular item pool at the
|
|
9092
|
+
* beginning of a vanilla run.
|
|
9093
|
+
*/
|
|
9094
|
+
export declare function isCollectibleTypeInDefaultItemPool(collectibleType: CollectibleType, itemPoolType: ItemPoolType): boolean;
|
|
9095
|
+
|
|
9067
9096
|
/** Helper function to check if something is an instantiated `Color` object. */
|
|
9068
9097
|
export declare function isColor(object: unknown): object is Color;
|
|
9069
9098
|
|