Cavestory Mod API
Functions
Bosses

Functions

CAVESTORY_MOD_API void CSM_Boss_ResetAllBossesHealth ()
 Reset all bosses' health back to their initial health amounts.
 
CAVESTORY_MOD_API NPCHARCSM_Boss_GetBossNpc (int iIndex)
 Get a boss NPC by index. More...
 
CAVESTORY_MOD_API int CSM_Boss_GetBossCount ()
 Get the number of valid boss functions. More...
 
CAVESTORY_MOD_API int CSM_Boss_GetCurrentBossDefaultHealth ()
 Get the current boss' init health. More...
 
CAVESTORY_MOD_API void CSM_Boss_SetInitHealth (CSM_BossTypes iBossType, int iHealth)
 Set the initializer health for a boss. More...
 

Detailed Description

Function Documentation

◆ CSM_Boss_GetBossCount()

CAVESTORY_MOD_API int CSM_Boss_GetBossCount ( )

Get the number of valid boss functions.

Returns
Returns number of valid boss functions.

◆ CSM_Boss_GetBossNpc()

CAVESTORY_MOD_API NPCHAR* CSM_Boss_GetBossNpc ( int  iIndex)

Get a boss NPC by index.

Parameters
iIndexThe index of the boss NPC.
Returns
Returns a pointer to an entry in gBoss.

◆ CSM_Boss_GetCurrentBossDefaultHealth()

CAVESTORY_MOD_API int CSM_Boss_GetCurrentBossDefaultHealth ( )

Get the current boss' init health.

Returns
Returns the current boss' init health.
Note
Current boss is determined by gBoss[0].code_char

◆ CSM_Boss_SetInitHealth()

CAVESTORY_MOD_API void CSM_Boss_SetInitHealth ( CSM_BossTypes  iBossType,
int  iHealth 
)

Set the initializer health for a boss.

Parameters
iBossTypeThe boss type to set the init health for.
iHealthThe amount of health the boss should have on initialization.