isaacscript-common 1.2.179 → 1.2.180

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.
@@ -25,19 +25,22 @@ export declare function getCollectibleGfxFilename(collectibleType: CollectibleTy
25
25
  * room, so the `PtrHash` will change. Instead, we use a 4-tuple of the room list index, the grid
26
26
  * index of the collectible in the room, the collectible's SubType, and the collectible's InitSeed.
27
27
  *
28
- * When collectibles are rolled (e.g. with a D6), their InitSeed changes. If you want to track
29
- * collectibles independently of any rerolls, then use the `PtrHash` as an index instead. (The
30
- * `PtrHash` will not persist between rooms, however.)
28
+ * Collectibles that are shifted by Tainted Isaac's mechanic will have unique collectible indexes
29
+ * because the SubType is different. (The collectible entities share the same InitSeed.)
30
+ *
31
+ * Collectibles that are rolled (with e.g. a D6) will have unique collectible indexes because the
32
+ * SubType and InitSeed are different. If you want to track collectibles independently of any
33
+ * rerolls, then you can use the `PtrHash` as an index instead. (The `PtrHash` will not persist
34
+ * between rooms, however.)
31
35
  *
32
36
  * Note that:
33
37
  * - The grid index is a necessary part of the collectible index because Diplopia and Crooked Penny
34
- * can cause two or more collectibles with the same sub-type and InitSeed to exist in the same room.
38
+ * can cause two or more collectibles with the same SubType and InitSeed to exist in the same room.
35
39
  * - This index will fail in the case where the player uses Diplopia or a successful Crooked Penny
36
40
  * seven or more times in the same room, since that will cause two or more collectibles with the
37
- * same grid index and InitSeed to exist.
38
- * - The sub-type is a necessary part of the collectible index because Tainted Isaac will
39
- * continuously cause collectibles to morph into new sub-types with the same InitSeed. (For the
40
- * purposes of this index, the "shifted" items are considered to be separate collectibles.)
41
+ * same grid index, SubType, and InitSeed to exist.
42
+ * - The SubType is a necessary part of the collectible index because Tainted Isaac will
43
+ * continuously cause collectibles to morph into new sub-types with the same InitSeed.
41
44
  * - Using a collectible's position as part of the index is problematic, since players can push a
42
45
  * pedestal. (Even using the grid index does not solve this problem, since it is possible in certain
43
46
  * cases for collectibles to be spawned at a position that is not aligned with the grid, and the
@@ -50,7 +53,7 @@ export declare function getCollectibleGfxFilename(collectibleType: CollectibleTy
50
53
  * case. (Using the room list index or the room grid index is not suitable for this purpose, since
51
54
  * both of these values can change in the post-Ascent Treasure Room.) Even though there can be two
52
55
  * Treasure Rooms on an XL floor, both Treasure Rooms should not have collectibles with the same
53
- * InitSeed.
56
+ * grid index, Subtype, and InitSeed.
54
57
  */
55
58
  export declare function getCollectibleIndex(collectible: EntityPickup): CollectibleIndex;
56
59
  /**
package/dist/index.d.ts CHANGED
@@ -3,7 +3,6 @@ export { initCustomDoor, spawnCustomDoor, } from "./callbacks/postCustomDoorEnte
3
3
  export { forceNewLevelCallback, forceNewRoomCallback, } from "./callbacks/reorderedCallbacks";
4
4
  export * from "./classes/DefaultMap";
5
5
  export * from "./classes/ModUpgraded";
6
- export * from "./classes/Null";
7
6
  export * from "./constants";
8
7
  export * from "./enums/CardType";
9
8
  export * from "./enums/CollectiblePedestalType";
package/dist/index.lua CHANGED
@@ -38,14 +38,6 @@ do
38
38
  end
39
39
  end
40
40
  end
41
- do
42
- local ____export = require("classes.Null")
43
- for ____exportKey, ____exportValue in pairs(____export) do
44
- if ____exportKey ~= "default" then
45
- ____exports[____exportKey] = ____exportValue
46
- end
47
- end
48
- end
49
41
  do
50
42
  local ____export = require("constants")
51
43
  for ____exportKey, ____exportValue in pairs(____export) do
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.179",
3
+ "version": "1.2.180",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",