summaryrefslogtreecommitdiff
path: root/data/maps/SkyPillar_Top/scripts.inc
diff options
context:
space:
mode:
authorGriffinR <griffin.richards@comcast.net>2019-10-06 23:07:59 -0400
committerhuderlem <huderlem@gmail.com>2019-10-07 16:36:47 -0500
commitbcf74df27f852f5e83393a76bd0e774a570579ca (patch)
tree0a1f0c0c55b49309f0b940513cdde27a39764638 /data/maps/SkyPillar_Top/scripts.inc
parent7ba11b7a1b4e8639cdd65ab147a24b430f6424c5 (diff)
Use B_OUTCOME constants for GetBattleOutcome
Diffstat (limited to 'data/maps/SkyPillar_Top/scripts.inc')
-rw-r--r--data/maps/SkyPillar_Top/scripts.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/maps/SkyPillar_Top/scripts.inc b/data/maps/SkyPillar_Top/scripts.inc
index 4ab5b3424..95f430cbd 100644
--- a/data/maps/SkyPillar_Top/scripts.inc
+++ b/data/maps/SkyPillar_Top/scripts.inc
@@ -10,7 +10,7 @@ SkyPillar_Top_MapScript1_2396C8: @ 82396C8
SkyPillar_Top_EventScript_2396D2:: @ 82396D2
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 7
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
goto_if_ne Common_EventScript_NopReturn
removeobject VAR_LAST_TALKED
return
@@ -55,11 +55,11 @@ SkyPillar_Top_EventScript_239722:: @ 8239722
waitstate
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
- compare VAR_RESULT, 1
+ compare VAR_RESULT, B_OUTCOME_WON
goto_if_eq SkyPillar_Top_EventScript_239768
- compare VAR_RESULT, 4
+ compare VAR_RESULT, B_OUTCOME_RAN
goto_if_eq SkyPillar_Top_EventScript_239771
- compare VAR_RESULT, 5
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
goto_if_eq SkyPillar_Top_EventScript_239771
setflag FLAG_DEFEATED_RAYQUAZA
releaseall