Skip to main content

Character Health Conversion

Hierarchy

  • Feature

    CharacterHealthConversion

Methods

registerCharacterHealthConversion

registerCharacterHealthConversion(playerType, conversionHeartSubType): void

Helper function to make a character that has the same health mechanic as Blue Baby (red heart containers --> soul hearts) or Dark Judas (red heart containers --> black hearts).

Call this function once at the beginning of your mod to declare the health conversion type.

In order to use this function, you must upgrade your mod with ISCFeature.CHARACTER_HEALTH_CONVERSION.

Parameters

NameType
playerTypePlayerType
conversionHeartSubTypeConversionHeartSubType

Returns

void

Defined in

packages/isaacscript-common/src/classes/features/other/CharacterHealthConversion.ts:92