isaacscript-common 39.3.0 → 39.3.1
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 +5 -2
- package/dist/isaacscript-common.lua +1 -1
- package/dist/src/functions/gridEntities.d.ts +5 -2
- package/dist/src/functions/gridEntities.d.ts.map +1 -1
- package/dist/src/functions/gridEntities.lua +5 -2
- package/package.json +1 -1
- package/src/functions/gridEntities.ts +5 -4
package/dist/index.rollup.d.ts
CHANGED
|
@@ -8931,8 +8931,11 @@ export declare function isPoopPickup(pickup: EntityPickup): pickup is EntityPick
|
|
|
8931
8931
|
|
|
8932
8932
|
/**
|
|
8933
8933
|
* Helper function to detect whether a given Void Portal is one that randomly spawns after a boss is
|
|
8934
|
-
* defeated or is one that naturally spawns in the room after Hush.
|
|
8935
|
-
*
|
|
8934
|
+
* defeated or is one that naturally spawns in the room after Hush.
|
|
8935
|
+
*
|
|
8936
|
+
* Under the hood, this is determined by looking at the `VarData` of the entity:
|
|
8937
|
+
* - The `VarData` of Void Portals that are spawned after bosses will be equal to 1.
|
|
8938
|
+
* - The `VarData` of the Void Portal in the room after Hush is equal to 0.
|
|
8936
8939
|
*/
|
|
8937
8940
|
export declare function isPostBossVoidPortal(gridEntity: GridEntity): boolean;
|
|
8938
8941
|
|
|
@@ -144,8 +144,11 @@ export declare function isGridEntityXMLType(num: number): num is GridEntityXMLTy
|
|
|
144
144
|
export declare function isPoopGridEntityXMLType(gridEntityXMLType: GridEntityXMLType): boolean;
|
|
145
145
|
/**
|
|
146
146
|
* Helper function to detect whether a given Void Portal is one that randomly spawns after a boss is
|
|
147
|
-
* defeated or is one that naturally spawns in the room after Hush.
|
|
148
|
-
*
|
|
147
|
+
* defeated or is one that naturally spawns in the room after Hush.
|
|
148
|
+
*
|
|
149
|
+
* Under the hood, this is determined by looking at the `VarData` of the entity:
|
|
150
|
+
* - The `VarData` of Void Portals that are spawned after bosses will be equal to 1.
|
|
151
|
+
* - The `VarData` of the Void Portal in the room after Hush is equal to 0.
|
|
149
152
|
*/
|
|
150
153
|
export declare function isPostBossVoidPortal(gridEntity: GridEntity): boolean;
|
|
151
154
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gridEntities.d.ts","sourceRoot":"","sources":["../../../src/functions/gridEntities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAGL,cAAc,EAIf,MAAM,8BAA8B,CAAC;AAWtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AA0C1D;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,EAAE,GAAG,GACxB,CAAC,cAAc,EAAE,GAAG,CAAC,GAAG,SAAS,CAenC;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,cAAc,EAAE,cAAc,EAC9B,OAAO,SAAK,GACX,OAAO,CAiBT;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,GAAG,EAAE,CAKzC;AAED;;;;;;;;;GASG;AACH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,UAAU,GACrB,MAAM,EAAE,CAoBV;AAED,qFAAqF;AACrF,wBAAgB,+BAA+B,CAC7C,YAAY,EAAE,YAAY,GACzB,CAAC,cAAc,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,CAAC,CAuBhD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,eAAe,CAC7B,GAAG,eAAe,EAAE,cAAc,EAAE,GACnC,UAAU,EAAE,CAYd;AAgBD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,eAAe,EAAE,cAAc,EAAE,GACnC,UAAU,EAAE,CAYd;AAED,uFAAuF;AACvF,wBA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;AACH,wBAAgB,6BAA6B,CAC3C,GAAG,cAAc,EAAE,cAAc,EAAE,GAClC,UAAU,EAAE,CAYd;AAED;;;;;;GAMG;AACH,wBAAgB,mCAAmC,CACjD,QAAQ,EAAE,MAAM,EAAE,EAClB,UAAU,EAAE,UAAU,GACrB,IAAI,CAON;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,aAAa,EACxD,YAAY,EAAE,CAAC,EAAE,EACjB,UAAU,EAAE,OAAO,EACnB,GAAG,CAAC,EAAE,GAAG,GACR,CAAC,EAAE,CAoBL;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAC9B,qBAAqB,EAAE,UAAU,GAAG,GAAG,EACvC,UAAU,EAAE,OAAO,GAClB,IAAI,CAqCN;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAGnE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,gBAAgB,EAAE,GAAG,GAAG,OAAO,CAwD7D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,cAAc,EAAE,cAAc,EAC9B,mBAAmB,EAAE,GAAG,GAAG,MAAM,GAChC,UAAU,GAAG,SAAS,CAExB;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,GAAG,EACZ,mBAAmB,EAAE,GAAG,GAAG,MAAM,GAChC,UAAU,GAAG,SAAS,CAgCxB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG,GAAG,UAAU,GAAG,SAAS,CAkBtE"}
|
|
@@ -464,8 +464,11 @@ function ____exports.isPoopGridEntityXMLType(self, gridEntityXMLType)
|
|
|
464
464
|
return POOP_GRID_ENTITY_XML_TYPES_SET:has(gridEntityXMLType)
|
|
465
465
|
end
|
|
466
466
|
--- Helper function to detect whether a given Void Portal is one that randomly spawns after a boss is
|
|
467
|
-
-- defeated or is one that naturally spawns in the room after Hush.
|
|
468
|
-
--
|
|
467
|
+
-- defeated or is one that naturally spawns in the room after Hush.
|
|
468
|
+
--
|
|
469
|
+
-- Under the hood, this is determined by looking at the `VarData` of the entity:
|
|
470
|
+
-- - The `VarData` of Void Portals that are spawned after bosses will be equal to 1.
|
|
471
|
+
-- - The `VarData` of the Void Portal in the room after Hush is equal to 0.
|
|
469
472
|
function ____exports.isPostBossVoidPortal(self, gridEntity)
|
|
470
473
|
local saveState = gridEntity:GetSaveState()
|
|
471
474
|
return saveState.VarData == 1
|
package/package.json
CHANGED
|
@@ -501,12 +501,13 @@ export function isPoopGridEntityXMLType(
|
|
|
501
501
|
|
|
502
502
|
/**
|
|
503
503
|
* Helper function to detect whether a given Void Portal is one that randomly spawns after a boss is
|
|
504
|
-
* defeated or is one that naturally spawns in the room after Hush.
|
|
505
|
-
*
|
|
504
|
+
* defeated or is one that naturally spawns in the room after Hush.
|
|
505
|
+
*
|
|
506
|
+
* Under the hood, this is determined by looking at the `VarData` of the entity:
|
|
507
|
+
* - The `VarData` of Void Portals that are spawned after bosses will be equal to 1.
|
|
508
|
+
* - The `VarData` of the Void Portal in the room after Hush is equal to 0.
|
|
506
509
|
*/
|
|
507
510
|
export function isPostBossVoidPortal(gridEntity: GridEntity): boolean {
|
|
508
|
-
// - The VarData of Void Portals that are spawned after bosses will be equal to 1.
|
|
509
|
-
// - The VarData of the Void Portal in the room after Hush is equal to 0.
|
|
510
511
|
const saveState = gridEntity.GetSaveState();
|
|
511
512
|
return saveState.VarData === 1;
|
|
512
513
|
}
|