From 3d5f512aec2f446bbce6c561b5211b2d1d3d3da9 Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Fri, 3 Aug 2018 18:07:45 +0200 Subject: [PATCH] Use constant in a battle script. --- data/battle_scripts_2.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/battle_scripts_2.s b/data/battle_scripts_2.s index 1fbaa9536b..485847ed1a 100644 --- a/data/battle_scripts_2.s +++ b/data/battle_scripts_2.s @@ -4,6 +4,7 @@ #include "constants/battle_string_ids.h" #include "constants/items.h" #include "constants/songs.h" +#include "constants/game_stat.h" .include "asm/macros.inc" .include "asm/macros/battle_script.inc" .include "constants/constants.inc" @@ -62,7 +63,7 @@ BattleScript_SafariBallThrow:: BattleScript_SuccessBallThrow:: jumpifhalfword CMP_EQUAL, gLastUsedItem, ITEM_SAFARI_BALL, BattleScript_PrintCaughtMonInfo - incrementgamestat 0xB + incrementgamestat GAME_STAT_POKEMON_CAPTURES BattleScript_PrintCaughtMonInfo:: printstring STRINGID_GOTCHAPKMNCAUGHT trysetcaughtmondexflags BattleScript_TryNicknameCaughtMon