summaryrefslogtreecommitdiff
path: root/data/maps/Route12/scripts.inc
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2019-10-21 19:03:38 -0400
committerPikalaxALT <PikalaxALT@gmail.com>2019-10-21 19:03:38 -0400
commit8df72e4da6223f5d284029cb8503850523978a76 (patch)
treec16c7a671895c7b8054eee8a4771eeaa833a2346 /data/maps/Route12/scripts.inc
parent7679d537772d63393e9639b41e25516b651026aa (diff)
Document battle outcome checks in scripts
Diffstat (limited to 'data/maps/Route12/scripts.inc')
-rw-r--r--data/maps/Route12/scripts.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/maps/Route12/scripts.inc b/data/maps/Route12/scripts.inc
index 61a42972b..446d9047d 100644
--- a/data/maps/Route12/scripts.inc
+++ b/data/maps/Route12/scripts.inc
@@ -34,12 +34,12 @@ Route12_EventScript_168014:: @ 8168014
setflag FLAG_WOKE_UP_ROUTE_12_SNORLAX
dowildbattle
clearflag FLAG_SYS_SPECIAL_WILD_BATTLE
- specialvar VAR_RESULT, sub_80CA74C
- compare_var_to_value VAR_RESULT, 1
+ specialvar VAR_RESULT, Special_GetBattleOutcome
+ compare_var_to_value VAR_RESULT, B_OUTCOME_WON
goto_if eq, EventScript_16808F
- compare_var_to_value VAR_RESULT, 4
+ compare_var_to_value VAR_RESULT, B_OUTCOME_RAN
goto_if eq, EventScript_16808F
- compare_var_to_value VAR_RESULT, 5
+ compare_var_to_value VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if eq, EventScript_16808F
release
end