isaacscript-common 87.9.8 → 87.10.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.
@@ -15757,19 +15757,19 @@ export declare function playerHasHealthLeft(player: EntityPlayer): boolean;
15757
15757
 
15758
15758
  /** This is used by the `getPlayerHealth` and `setPlayerHealth` helper functions. */
15759
15759
  export declare interface PlayerHealth {
15760
- readonly maxHearts: int;
15761
- readonly hearts: int;
15762
- readonly eternalHearts: int;
15760
+ maxHearts: int;
15761
+ hearts: int;
15762
+ eternalHearts: int;
15763
15763
  /** For soul hearts to apply, they also have to be specified in the `soulHeartTypes` array. */
15764
- readonly soulHearts: int;
15764
+ soulHearts: int;
15765
15765
  /** For bone hearts to apply, they also have to be specified in the `soulHeartTypes` array. */
15766
- readonly boneHearts: int;
15767
- readonly goldenHearts: int;
15768
- readonly rottenHearts: int;
15769
- readonly brokenHearts: int;
15770
- readonly soulCharges: int;
15771
- readonly bloodCharges: int;
15772
- readonly soulHeartTypes: readonly SoulHeartType[];
15766
+ boneHearts: int;
15767
+ goldenHearts: int;
15768
+ rottenHearts: int;
15769
+ brokenHearts: int;
15770
+ soulCharges: int;
15771
+ bloodCharges: int;
15772
+ soulHeartTypes: readonly SoulHeartType[];
15773
15773
  }
15774
15774
 
15775
15775
  /**
@@ -1,19 +1,19 @@
1
1
  import type { HeartSubType } from "isaac-typescript-definitions";
2
2
  /** This is used by the `getPlayerHealth` and `setPlayerHealth` helper functions. */
3
3
  export interface PlayerHealth {
4
- readonly maxHearts: int;
5
- readonly hearts: int;
6
- readonly eternalHearts: int;
4
+ maxHearts: int;
5
+ hearts: int;
6
+ eternalHearts: int;
7
7
  /** For soul hearts to apply, they also have to be specified in the `soulHeartTypes` array. */
8
- readonly soulHearts: int;
8
+ soulHearts: int;
9
9
  /** For bone hearts to apply, they also have to be specified in the `soulHeartTypes` array. */
10
- readonly boneHearts: int;
11
- readonly goldenHearts: int;
12
- readonly rottenHearts: int;
13
- readonly brokenHearts: int;
14
- readonly soulCharges: int;
15
- readonly bloodCharges: int;
16
- readonly soulHeartTypes: readonly SoulHeartType[];
10
+ boneHearts: int;
11
+ goldenHearts: int;
12
+ rottenHearts: int;
13
+ brokenHearts: int;
14
+ soulCharges: int;
15
+ bloodCharges: int;
16
+ soulHeartTypes: readonly SoulHeartType[];
17
17
  }
18
18
  export type SoulHeartType = HeartSubType.SOUL | HeartSubType.BLACK | HeartSubType.BONE;
19
19
  //# sourceMappingURL=PlayerHealth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlayerHealth.d.ts","sourceRoot":"","sources":["../../src/interfaces/PlayerHealth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,oFAAoF;AACpF,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC;IACrB,QAAQ,CAAC,aAAa,EAAE,GAAG,CAAC;IAE5B,8FAA8F;IAC9F,QAAQ,CAAC,UAAU,EAAE,GAAG,CAAC;IAEzB,8FAA8F;IAC9F,QAAQ,CAAC,UAAU,EAAE,GAAG,CAAC;IAEzB,QAAQ,CAAC,YAAY,EAAE,GAAG,CAAC;IAC3B,QAAQ,CAAC,YAAY,EAAE,GAAG,CAAC;IAC3B,QAAQ,CAAC,YAAY,EAAE,GAAG,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC;IAC1B,QAAQ,CAAC,YAAY,EAAE,GAAG,CAAC;IAE3B,QAAQ,CAAC,cAAc,EAAE,SAAS,aAAa,EAAE,CAAC;CACnD;AAED,MAAM,MAAM,aAAa,GACrB,YAAY,CAAC,IAAI,GACjB,YAAY,CAAC,KAAK,GAClB,YAAY,CAAC,IAAI,CAAC"}
1
+ {"version":3,"file":"PlayerHealth.d.ts","sourceRoot":"","sources":["../../src/interfaces/PlayerHealth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,oFAAoF;AAEpF,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,GAAG,CAAC;IACZ,aAAa,EAAE,GAAG,CAAC;IAEnB,8FAA8F;IAC9F,UAAU,EAAE,GAAG,CAAC;IAEhB,8FAA8F;IAC9F,UAAU,EAAE,GAAG,CAAC;IAEhB,YAAY,EAAE,GAAG,CAAC;IAClB,YAAY,EAAE,GAAG,CAAC;IAClB,YAAY,EAAE,GAAG,CAAC;IAClB,WAAW,EAAE,GAAG,CAAC;IACjB,YAAY,EAAE,GAAG,CAAC;IAElB,cAAc,EAAE,SAAS,aAAa,EAAE,CAAC;CAC1C;AAED,MAAM,MAAM,aAAa,GACrB,YAAY,CAAC,IAAI,GACjB,YAAY,CAAC,KAAK,GAClB,YAAY,CAAC,IAAI,CAAC"}
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 87.9.7
3
+ isaacscript-common 87.9.8
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "87.9.8",
3
+ "version": "87.10.0",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -1,24 +1,25 @@
1
1
  import type { HeartSubType } from "isaac-typescript-definitions";
2
2
 
3
3
  /** This is used by the `getPlayerHealth` and `setPlayerHealth` helper functions. */
4
+ // eslint-disable-next-line complete/type-declaration-immutability
4
5
  export interface PlayerHealth {
5
- readonly maxHearts: int;
6
- readonly hearts: int;
7
- readonly eternalHearts: int;
6
+ maxHearts: int;
7
+ hearts: int;
8
+ eternalHearts: int;
8
9
 
9
10
  /** For soul hearts to apply, they also have to be specified in the `soulHeartTypes` array. */
10
- readonly soulHearts: int;
11
+ soulHearts: int;
11
12
 
12
13
  /** For bone hearts to apply, they also have to be specified in the `soulHeartTypes` array. */
13
- readonly boneHearts: int;
14
+ boneHearts: int;
14
15
 
15
- readonly goldenHearts: int;
16
- readonly rottenHearts: int;
17
- readonly brokenHearts: int;
18
- readonly soulCharges: int;
19
- readonly bloodCharges: int;
16
+ goldenHearts: int;
17
+ rottenHearts: int;
18
+ brokenHearts: int;
19
+ soulCharges: int;
20
+ bloodCharges: int;
20
21
 
21
- readonly soulHeartTypes: readonly SoulHeartType[];
22
+ soulHeartTypes: readonly SoulHeartType[];
22
23
  }
23
24
 
24
25
  export type SoulHeartType =