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
Name | Type |
---|---|
playerType | PlayerType |
conversionHeartSubType | ConversionHeartSubType |
Returns
void
Defined in
packages/isaacscript-common/src/classes/features/other/CharacterHealthConversion.ts:92