summaryrefslogtreecommitdiff
path: root/src/dungeon_pokemon_attributes_1.c
diff options
context:
space:
mode:
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;
}