summaryrefslogtreecommitdiff
path: root/src/dungeon_pokemon_attributes_1.c
diff options
context:
space:
mode:
authorAnonymousRandomPerson <chenghanngan.us@gmail.com>2021-12-28 22:15:56 -0600
committerAnonymousRandomPerson <chenghanngan.us@gmail.com>2021-12-28 22:15:56 -0600
commitea10f7b7bd6957312b9b0dfa371761c5936bc80a (patch)
tree7bbce0d40ce8c714e793ef22f3a7c125f9ff3fbd /src/dungeon_pokemon_attributes_1.c
parentd40d2e55a304ec355595b4a0f9f8d51ca3eb2769 (diff)
Created header for pokemon_3
Diffstat (limited to 'src/dungeon_pokemon_attributes_1.c')
-rw-r--r--src/dungeon_pokemon_attributes_1.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/dungeon_pokemon_attributes_1.c b/src/dungeon_pokemon_attributes_1.c
index d3b8cab..a5d6acf 100644
--- a/src/dungeon_pokemon_attributes_1.c
+++ b/src/dungeon_pokemon_attributes_1.c
@@ -9,6 +9,7 @@
#include "constants/move_id.h"
#include "constants/status.h"
#include "constants/tactic.h"
+#include "pokemon_3.h"
extern s16 gItemMasterMinWildLevel;
@@ -26,9 +27,9 @@ extern s32 GetMovePower(struct PokemonMove *move);
bool8 CanSeeInvisible(struct DungeonEntity *pokemon)
{
struct DungeonEntityData *pokemonData = pokemon->entityData;
- if(pokemonData->eyesightStatus != EYESIGHT_STATUS_EYEDROPS)
+ if (pokemonData->eyesightStatus != EYESIGHT_STATUS_EYEDROPS)
{
- if(!HasItem(pokemon, ITEM_ID_GOGGLE_SPECS))
+ if (!HasItem(pokemon, ITEM_ID_GOGGLE_SPECS))
return FALSE;
else
return TRUE;
@@ -63,7 +64,7 @@ void LoadIQSkills(struct DungeonEntity *pokemon)
u8 *iVar2;
s32 IQSkill;
struct DungeonEntityData *pokemonData;
-
+
pokemonData = pokemon->entityData;
if (pokemonData->isEnemy) {
iVar2 = pokemonData->IQSkillsEnabled;
@@ -82,8 +83,8 @@ void LoadIQSkills(struct DungeonEntity *pokemon)
pokemonData->IQSkillsEnabled[2] = 0;
for(IQSkill = IQ_SKILL_TYPE_ADVANTAGE_MASTER; IQSkill < NUM_IQ_SKILLS; IQSkill++)
{
- if (HasIQForSkill(pokemonData->IQ,IQSkill) &&
- IsIQSkillSet(pokemonData->IQSkillsSelected, 1 << IQSkill))
+ if (HasIQForSkill(pokemonData->IQ,IQSkill) &&
+ IsIQSkillSet(pokemonData->IQSkillsSelected, 1 << IQSkill))
{
SetIQSkill(pokemonData->IQSkillsEnabled,IQSkill);
}
@@ -95,7 +96,7 @@ bool8 CanSeeTeammate(struct DungeonEntity * pokemon)
{
struct DungeonEntity *teamMember;
s32 memberIdx;
-
+
if (pokemon->entityData->isEnemy) {
return FALSE;
}
@@ -132,13 +133,13 @@ s32 CalculateMovePower(struct DungeonEntity *pokemon, struct PokemonMove *pokeMo
bool8 ToolboxEnabled(struct DungeonEntityData *pokemon)
{
if(!IsToolboxEnabled(pokemon->entityID))
- return FALSE;
+ return FALSE;
return TRUE;
}
static inline bool8 sub_8071A8C_sub(struct DungeonEntityData *pokemonData)
{
- if(pokemonData->joinLocation == DUNGEON_JOIN_LOCATION_CLIENT_POKEMON ||
+ if(pokemonData->joinLocation == DUNGEON_JOIN_LOCATION_CLIENT_POKEMON ||
pokemonData->joinLocation == DUNGEON_RESCUE_TEAM_BASE)
return TRUE;
else