summaryrefslogtreecommitdiff
path: root/data/maps/Route105/scripts.inc
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/Route105/scripts.inc')
-rw-r--r--data/maps/Route105/scripts.inc18
1 files changed, 6 insertions, 12 deletions
diff --git a/data/maps/Route105/scripts.inc b/data/maps/Route105/scripts.inc
index 2184edf5a..bfad0daaa 100644
--- a/data/maps/Route105/scripts.inc
+++ b/data/maps/Route105/scripts.inc
@@ -6,10 +6,8 @@ Route105_MapScripts::
Route105_OnLoad:
call_if_unset FLAG_REGI_DOORS_OPENED, Route105_CloseRegiEntrance
- compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_105_NORTH
- call_if_eq AbnormalWeather_EventScript_PlaceTilesRoute105North
- compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_105_SOUTH
- call_if_eq AbnormalWeather_EventScript_PlaceTilesRoute105South
+ call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_105_NORTH, AbnormalWeather_EventScript_PlaceTilesRoute105North
+ call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_105_SOUTH, AbnormalWeather_EventScript_PlaceTilesRoute105South
end
Route105_CloseRegiEntrance::
@@ -18,12 +16,9 @@ Route105_CloseRegiEntrance::
return
Route105_OnTransition:
- compare VAR_SHOULD_END_ABNORMAL_WEATHER, 1
- call_if_eq AbnormalWeather_EventScript_HideMapNamePopup
- compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_105_NORTH
- call_if_eq AbnormalWeather_StartKyogreWeather
- compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_105_SOUTH
- call_if_eq AbnormalWeather_StartKyogreWeather
+ call_if_eq VAR_SHOULD_END_ABNORMAL_WEATHER, 1, AbnormalWeather_EventScript_HideMapNamePopup
+ call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_105_NORTH, AbnormalWeather_StartKyogreWeather
+ call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_105_SOUTH, AbnormalWeather_StartKyogreWeather
end
Route105_OnFrame:
@@ -63,8 +58,7 @@ Route105_EventScript_Josue::
Route105_EventScript_Andres::
trainerbattle_single TRAINER_ANDRES_1, Route105_Text_AndresIntro, Route105_Text_AndresDefeated, Route105_EventScript_AndresRegisterMatchCallAfterBattle
specialvar VAR_RESULT, ShouldTryRematchBattle
- compare VAR_RESULT, TRUE
- goto_if_eq Route105_EventScript_AndresRematch
+ goto_if_eq VAR_RESULT, TRUE, Route105_EventScript_AndresRematch
msgbox Route105_Text_AndresPostBattle, MSGBOX_DEFAULT
release
end