isaacscript-common 9.5.0 → 9.5.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.
@@ -8,7 +8,9 @@ export declare function getCoinValue(coinSubType: CoinSubType): int;
8
8
  export declare function getRedHearts(): EntityPickupHeart[];
9
9
  /** Helper function to test if the provided pickup matches one of the various chest variants. */
10
10
  export declare function isChest(pickup: EntityPickup): boolean;
11
- /** Helper function to test if the provided pickup matches on of the various red heart sub types. */
11
+ /**
12
+ * Helper function to test if the provided pickup matches one of the various red heart sub types.
13
+ */
12
14
  export declare function isRedHeart(pickup: EntityPickup): boolean;
13
15
  /**
14
16
  * Helper function to remove all of the red heart pickup entities in the room.
@@ -1 +1 @@
1
- {"version":3,"file":"pickups.d.ts","sourceRoot":"","sources":["../../src/functions/pickups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAW3D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,WAAW,GAAG,GAAG,CAK1D;AAED,+EAA+E;AAC/E,wBAAgB,YAAY,IAAI,iBAAiB,EAAE,CAGlD;AAED,gGAAgG;AAChG,wBAAgB,OAAO,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAErD;AAED,oGAAoG;AACpG,wBAAgB,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAExD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,iBAAiB,EAAE,CAGjE"}
1
+ {"version":3,"file":"pickups.d.ts","sourceRoot":"","sources":["../../src/functions/pickups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAW3D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,WAAW,GAAG,GAAG,CAK1D;AAED,+EAA+E;AAC/E,wBAAgB,YAAY,IAAI,iBAAiB,EAAE,CAGlD;AAED,gGAAgG;AAChG,wBAAgB,OAAO,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAErD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAExD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,iBAAiB,EAAE,CAGjE"}
@@ -32,7 +32,7 @@ end
32
32
  function ____exports.isChest(self, pickup)
33
33
  return CHEST_PICKUP_VARIANTS:has(pickup.Variant)
34
34
  end
35
- --- Helper function to test if the provided pickup matches on of the various red heart sub types.
35
+ --- Helper function to test if the provided pickup matches one of the various red heart sub types.
36
36
  function ____exports.isRedHeart(self, pickup)
37
37
  return isHeart(nil, pickup) and RED_HEART_SUB_TYPES_SET:has(pickup.SubType)
38
38
  end
package/dist/index.d.ts CHANGED
@@ -6042,7 +6042,9 @@ export declare function isQuestCollectible(collectibleType: CollectibleType): bo
6042
6042
  */
6043
6043
  export declare function isRaglingDeathPatch(npc: EntityNPC): boolean;
6044
6044
 
6045
- /** Helper function to test if the provided pickup matches on of the various red heart sub types. */
6045
+ /**
6046
+ * Helper function to test if the provided pickup matches one of the various red heart sub types.
6047
+ */
6046
6048
  export declare function isRedHeart(pickup: EntityPickup): boolean;
6047
6049
 
6048
6050
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "9.5.0",
3
+ "version": "9.5.1",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -22,6 +22,6 @@
22
22
  "main": "dist/index",
23
23
  "types": "dist/index.d.ts",
24
24
  "dependencies": {
25
- "isaac-typescript-definitions": "^4.0.1"
25
+ "isaac-typescript-definitions": "^4.0.2"
26
26
  }
27
27
  }
@@ -31,7 +31,9 @@ export function isChest(pickup: EntityPickup): boolean {
31
31
  return CHEST_PICKUP_VARIANTS.has(pickup.Variant);
32
32
  }
33
33
 
34
- /** Helper function to test if the provided pickup matches on of the various red heart sub types. */
34
+ /**
35
+ * Helper function to test if the provided pickup matches one of the various red heart sub types.
36
+ */
35
37
  export function isRedHeart(pickup: EntityPickup): boolean {
36
38
  return isHeart(pickup) && RED_HEART_SUB_TYPES_SET.has(pickup.SubType);
37
39
  }