Pills

Overview

Functions

GetFalsePHDPillEffect()

PillEffectarrow-up-right GetFalsePHDPillEffect(PillEffectarrow-up-right pillEffect)

Helper function to get the corresponding pill effect a pill effect would be converted into after picking up False PHD. If the pill wouldn't transform, it returns the same pill effect.

GetHorsePillCollor()

PillColorarrow-up-right GetHorsePillCollor(PillColorarrow-up-right pillColor)

Helper function to get the corresponding horse pill color from a normal pill color

GetNormalPillColorFromHorsePill()

PillColorarrow-up-right GetNormalPillColorFromHorsePill(PillColorarrow-up-right pillColor)

Helper function to get the corresponding normal pill color from a horse pill color

GetPHDPillEffect()

PillEffectarrow-up-right GetPHDPillEffect(PillEffectarrow-up-right pillEffect)

Helper function to get the corresponding pill effect a pill effect would be converted into after picking up PHD. If the pill wouldn't transform, it returns the same pill effect.

GetPillEffectName()

string GetPillEffectName(PillEffectarrow-up-right pillEffect)

Helper function to get the name of a given pill effect. For modded pill effects it returns the name set in the xml.

GetPillEffectType()

PillEffectType GetPillEffectType(PillEffectarrow-up-right pillEffect)

Helper function to get the PillEffectType of a given pill effect. Due to API limitations, it'll returns PillEffectType.MODDED for modded pills.

IsHorsePill()

boolean IsHorsePill(PillColorarrow-up-right pillColor)

Helper function to check if a pill color corresponds to a horse pill.

Last updated