allow setting poison gas level
also commented out some find_water_level calls
This commit is contained in:
@@ -440,6 +440,20 @@ SM64_LIB_FN void sm64_set_mario_water_level(int32_t marioId, signed int level)
|
||||
gMarioState->waterLevel = level;
|
||||
}
|
||||
|
||||
SM64_LIB_FN void sm64_set_mario_gas_level(int32_t marioId, signed int level)
|
||||
{
|
||||
if( marioId >= s_mario_instance_pool.size || s_mario_instance_pool.objects[marioId] == NULL )
|
||||
{
|
||||
DEBUG_PRINT("Tried to use non-existant Mario with ID: %d", marioId);
|
||||
return;
|
||||
}
|
||||
|
||||
struct GlobalState *globalState = ((struct MarioInstance *)s_mario_instance_pool.objects[ marioId ])->globalState;
|
||||
global_state_bind( globalState );
|
||||
|
||||
gMarioState->gasLevel = level;
|
||||
}
|
||||
|
||||
SM64_LIB_FN void sm64_mario_take_damage(int32_t marioId, uint32_t damage, uint32_t subtype, float x, float y, float z)
|
||||
{
|
||||
if( marioId >= s_mario_instance_pool.size || s_mario_instance_pool.objects[marioId] == NULL )
|
||||
|
||||
Reference in New Issue
Block a user