isaacscript-common 87.9.8 → 87.10.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
CHANGED
|
@@ -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
|
-
|
|
15761
|
-
|
|
15762
|
-
|
|
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
|
-
|
|
15764
|
+
soulHearts: int;
|
|
15765
15765
|
/** For bone hearts to apply, they also have to be specified in the `soulHeartTypes` array. */
|
|
15766
|
-
|
|
15767
|
-
|
|
15768
|
-
|
|
15769
|
-
|
|
15770
|
-
|
|
15771
|
-
|
|
15772
|
-
|
|
15766
|
+
boneHearts: int;
|
|
15767
|
+
goldenHearts: int;
|
|
15768
|
+
rottenHearts: int;
|
|
15769
|
+
brokenHearts: int;
|
|
15770
|
+
soulCharges: int;
|
|
15771
|
+
bloodCharges: int;
|
|
15772
|
+
soulHeartTypes: 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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
8
|
+
soulHearts: int;
|
|
9
9
|
/** For bone hearts to apply, they also have to be specified in the `soulHeartTypes` array. */
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
boneHearts: int;
|
|
11
|
+
goldenHearts: int;
|
|
12
|
+
rottenHearts: int;
|
|
13
|
+
brokenHearts: int;
|
|
14
|
+
soulCharges: int;
|
|
15
|
+
bloodCharges: int;
|
|
16
|
+
soulHeartTypes: 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;
|
|
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,aAAa,EAAE,CAAC;CACjC;AAED,MAAM,MAAM,aAAa,GACrB,YAAY,CAAC,IAAI,GACjB,YAAY,CAAC,KAAK,GAClB,YAAY,CAAC,IAAI,CAAC"}
|
package/package.json
CHANGED
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
11
|
+
soulHearts: int;
|
|
11
12
|
|
|
12
13
|
/** For bone hearts to apply, they also have to be specified in the `soulHeartTypes` array. */
|
|
13
|
-
|
|
14
|
+
boneHearts: int;
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
goldenHearts: int;
|
|
17
|
+
rottenHearts: int;
|
|
18
|
+
brokenHearts: int;
|
|
19
|
+
soulCharges: int;
|
|
20
|
+
bloodCharges: int;
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
soulHeartTypes: SoulHeartType[];
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
export type SoulHeartType =
|