Player Effects
Functions
Section titled “Functions”anyPlayerHasCollectibleEffect()
Section titled “anyPlayerHasCollectibleEffect()”anyPlayerHasCollectibleEffect(
collectibleType):boolean
Defined in: packages/isaacscript-common/src/functions/playerEffects.ts:11
Helper function to check to see if any player has a temporary collectible effect.
Parameters
Section titled “Parameters”collectibleType
Section titled “collectibleType”CollectibleType
Returns
Section titled “Returns”boolean
anyPlayerHasNullEffect()
Section titled “anyPlayerHasNullEffect()”anyPlayerHasNullEffect(
nullItemID):boolean
Defined in: packages/isaacscript-common/src/functions/playerEffects.ts:23
Helper function to check to see if any player has a temporary null effect.
Parameters
Section titled “Parameters”nullItemID
Section titled “nullItemID”NullItemID
Returns
Section titled “Returns”boolean
anyPlayerHasTrinketEffect()
Section titled “anyPlayerHasTrinketEffect()”anyPlayerHasTrinketEffect(
trinketType):boolean
Defined in: packages/isaacscript-common/src/functions/playerEffects.ts:33
Helper function to check to see if any player has a temporary trinket effect.
Parameters
Section titled “Parameters”trinketType
Section titled “trinketType”TrinketType
Returns
Section titled “Returns”boolean
getEffectsList()
Section titled “getEffectsList()”getEffectsList(
player): readonlyTemporaryEffect[]
Defined in: packages/isaacscript-common/src/functions/playerEffects.ts:46
Helper function to get an array of temporary effects for a player. This is helpful so that you
don’t have to manually create an array from an EffectsList object.
Parameters
Section titled “Parameters”player
Section titled “player”EntityPlayer
Returns
Section titled “Returns”readonly TemporaryEffect[]
shouldWhoreOfBabylonBeActive()
Section titled “shouldWhoreOfBabylonBeActive()”shouldWhoreOfBabylonBeActive(
player):boolean
Defined in: packages/isaacscript-common/src/functions/playerEffects.ts:70
Helper function to check if a player should have Whore of Babylon active at their current health level.
- For most characters, Whore of Babylon activates when the red hearts are at 1/2 or less.
- For Eve, Whore of Babylon activates when the red hearts are at 1 or less.
Parameters
Section titled “Parameters”player
Section titled “player”EntityPlayer
Returns
Section titled “Returns”boolean
