mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-13 23:23:43 +01:00
Use constant in a battle script.
This commit is contained in:
parent
759bc2671c
commit
3d5f512aec
@ -4,6 +4,7 @@
|
|||||||
#include "constants/battle_string_ids.h"
|
#include "constants/battle_string_ids.h"
|
||||||
#include "constants/items.h"
|
#include "constants/items.h"
|
||||||
#include "constants/songs.h"
|
#include "constants/songs.h"
|
||||||
|
#include "constants/game_stat.h"
|
||||||
.include "asm/macros.inc"
|
.include "asm/macros.inc"
|
||||||
.include "asm/macros/battle_script.inc"
|
.include "asm/macros/battle_script.inc"
|
||||||
.include "constants/constants.inc"
|
.include "constants/constants.inc"
|
||||||
@ -62,7 +63,7 @@ BattleScript_SafariBallThrow::
|
|||||||
|
|
||||||
BattleScript_SuccessBallThrow::
|
BattleScript_SuccessBallThrow::
|
||||||
jumpifhalfword CMP_EQUAL, gLastUsedItem, ITEM_SAFARI_BALL, BattleScript_PrintCaughtMonInfo
|
jumpifhalfword CMP_EQUAL, gLastUsedItem, ITEM_SAFARI_BALL, BattleScript_PrintCaughtMonInfo
|
||||||
incrementgamestat 0xB
|
incrementgamestat GAME_STAT_POKEMON_CAPTURES
|
||||||
BattleScript_PrintCaughtMonInfo::
|
BattleScript_PrintCaughtMonInfo::
|
||||||
printstring STRINGID_GOTCHAPKMNCAUGHT
|
printstring STRINGID_GOTCHAPKMNCAUGHT
|
||||||
trysetcaughtmondexflags BattleScript_TryNicknameCaughtMon
|
trysetcaughtmondexflags BattleScript_TryNicknameCaughtMon
|
||||||
|
Loading…
x
Reference in New Issue
Block a user