mirror of
https://github.com/pret/pmd-sky.git
synced 2026-04-24 06:47:44 -05:00
31 lines
668 B
C
31 lines
668 B
C
#include "dungeon_logic_3.h"
|
|
#include "dungeon_pokemon_attributes.h"
|
|
#include "dungeon_util_static.h"
|
|
#include "overlay_29_02338390.h"
|
|
|
|
bool8 LevitateIsActive(struct entity* entity)
|
|
{
|
|
if (GravityIsActive())
|
|
return FALSE;
|
|
|
|
if (AbilityIsActive(entity, ABILITY_LEVITATE))
|
|
return TRUE;
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
bool8 MonsterIsType(struct entity *entity, enum type_id type_id)
|
|
{
|
|
struct monster *pokemon_info = pokemon_info = GetEntInfo(entity);
|
|
if (type_id == TYPE_NONE)
|
|
return FALSE;
|
|
|
|
if (pokemon_info->types[0] == type_id)
|
|
return TRUE;
|
|
|
|
if (pokemon_info->types[1] == type_id)
|
|
return TRUE;
|
|
|
|
return FALSE;
|
|
}
|