summaryrefslogtreecommitdiff
path: root/src/dungeon_pokemon_attributes_1.c
diff options
context:
space:
mode:
authorAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-01-04 23:34:35 -0600
committerAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-01-04 23:34:35 -0600
commit2fa42b2987c9623b0bbfae37eba9569ceb69930b (patch)
tree83a7456b64347014a5886de3ed615994aa181e41 /src/dungeon_pokemon_attributes_1.c
parentc30cf5c6da8283330bc352d58acc037739cd8b72 (diff)
Moved some constants from data to source
Diffstat (limited to 'src/dungeon_pokemon_attributes_1.c')
-rw-r--r--src/dungeon_pokemon_attributes_1.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dungeon_pokemon_attributes_1.c b/src/dungeon_pokemon_attributes_1.c
index f3829b2..93d8d4a 100644
--- a/src/dungeon_pokemon_attributes_1.c
+++ b/src/dungeon_pokemon_attributes_1.c
@@ -12,8 +12,7 @@
#include "pokemon.h"
#include "pokemon_3.h"
-extern s16 gItemMasterMinWildLevel;
-
+const s16 gItemMasterMinWildLevel[] = {16};
extern bool8 IsIQSkillSet(u8 *, u32);
extern void SetIQSkill(u8 *param_1, u32 skillIndex);
@@ -73,7 +72,7 @@ void LoadIQSkills(struct DungeonEntity *pokemon)
SetIQSkill(iVar2, IQ_SKILL_ITEM_CATCHER);
if (pokemonData->isBoss)
SetIQSkill(iVar2, IQ_SKILL_SELF_CURER);
- if (pokemonData->level >= gItemMasterMinWildLevel)
+ if (pokemonData->level >= *gItemMasterMinWildLevel)
SetIQSkill(iVar2, IQ_SKILL_ITEM_MASTER);
pokemonData->tactic = TACTIC_GO_AFTER_FOES;
}