PlayerHealth
Interfaces
Section titled “Interfaces”PlayerHealth
Section titled “PlayerHealth”Defined in: packages/isaacscript-common/src/interfaces/PlayerHealth.ts:5
This is used by the getPlayerHealth and setPlayerHealth helper functions.
Properties
Section titled “Properties”maxHearts
Section titled “maxHearts”maxHearts:
int
Defined in: packages/isaacscript-common/src/interfaces/PlayerHealth.ts:6
hearts
Section titled “hearts”hearts:
int
Defined in: packages/isaacscript-common/src/interfaces/PlayerHealth.ts:7
eternalHearts
Section titled “eternalHearts”eternalHearts:
int
Defined in: packages/isaacscript-common/src/interfaces/PlayerHealth.ts:8
soulHearts
Section titled “soulHearts”soulHearts:
int
Defined in: packages/isaacscript-common/src/interfaces/PlayerHealth.ts:11
For soul hearts to apply, they also have to be specified in the soulHeartTypes array.
boneHearts
Section titled “boneHearts”boneHearts:
int
Defined in: packages/isaacscript-common/src/interfaces/PlayerHealth.ts:14
For bone hearts to apply, they also have to be specified in the soulHeartTypes array.
goldenHearts
Section titled “goldenHearts”goldenHearts:
int
Defined in: packages/isaacscript-common/src/interfaces/PlayerHealth.ts:16
rottenHearts
Section titled “rottenHearts”rottenHearts:
int
Defined in: packages/isaacscript-common/src/interfaces/PlayerHealth.ts:17
brokenHearts
Section titled “brokenHearts”brokenHearts:
int
Defined in: packages/isaacscript-common/src/interfaces/PlayerHealth.ts:18
soulCharges
Section titled “soulCharges”soulCharges:
int
Defined in: packages/isaacscript-common/src/interfaces/PlayerHealth.ts:19
bloodCharges
Section titled “bloodCharges”bloodCharges:
int
Defined in: packages/isaacscript-common/src/interfaces/PlayerHealth.ts:20
soulHeartTypes
Section titled “soulHeartTypes”soulHeartTypes:
SoulHeartType[]
Defined in: packages/isaacscript-common/src/interfaces/PlayerHealth.ts:22
Type Aliases
Section titled “Type Aliases”SoulHeartType
Section titled “SoulHeartType”SoulHeartType =
HeartSubType.SOUL|HeartSubType.BLACK|HeartSubType.BONE
Defined in: packages/isaacscript-common/src/interfaces/PlayerHealth.ts:25
