Skip to main content

Tainted Lazarus Players

This feature provides a way for end-users to get the EntityPlayer object for the other Tainted Lazarus.

Hierarchy

  • Feature

    TaintedLazarusPlayers

Methods

vConditionalFunc

vConditionalFunc(): boolean

Returns

boolean

Overrides

Feature.vConditionalFunc

Defined in

packages/isaacscript-common/src/classes/features/other/TaintedLazarusPlayers.ts:35


getTaintedLazarusSubPlayer

getTaintedLazarusSubPlayer(player): undefined | EntityPlayer

Helper function to get the other version of Tainted Lazarus.

  • On Tainted Lazarus, returns the player object for Dead Tainted Lazarus.
  • On Dead Tainted Lazarus, returns the player object for Tainted Lazarus.
  • Returns undefined if player object retrieval failed for any reason.

If you call the EntityPlayer.Exists method on the returned object, it will return false. However, you can still call the other methods like you normally would (e.g. EntityPlayer.AddCollectible).

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

Parameters

NameType
playerEntityPlayer

Returns

undefined | EntityPlayer

Defined in

packages/isaacscript-common/src/classes/features/other/TaintedLazarusPlayers.ts:117