isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
19 lines • 767 B
TypeScript
import type { HeartSubType } from "isaac-typescript-definitions";
/** This is used by the `getPlayerHealth` and `setPlayerHealth` helper functions. */
export interface PlayerHealth {
maxHearts: int;
hearts: int;
eternalHearts: int;
/** For soul hearts to apply, they also have to be specified in the `soulHeartTypes` array. */
soulHearts: int;
/** For bone hearts to apply, they also have to be specified in the `soulHeartTypes` array. */
boneHearts: int;
goldenHearts: int;
rottenHearts: int;
brokenHearts: int;
soulCharges: int;
bloodCharges: int;
soulHeartTypes: SoulHeartType[];
}
export type SoulHeartType = HeartSubType.SOUL | HeartSubType.BLACK | HeartSubType.BONE;
//# sourceMappingURL=PlayerHealth.d.ts.map