Reformat compare + goto_if/call_if to single statements
This commit is contained in:
@@ -19,12 +19,9 @@ SootopolisCity_Gym_1F_OnLoad:
|
||||
end
|
||||
|
||||
SootopolisCity_Gym_1F_EventScript_CheckSetStairMetatiles::
|
||||
compare VAR_ICE_STEP_COUNT, 8
|
||||
goto_if_lt SootopolisCity_Gym_1F_EventScript_StopCheckingStairs @ All stairs ice
|
||||
compare VAR_ICE_STEP_COUNT, 28
|
||||
goto_if_lt SootopolisCity_Gym_1F_EventScript_OpenFirstStairs
|
||||
compare VAR_ICE_STEP_COUNT, 67
|
||||
goto_if_lt SootopolisCity_Gym_1F_EventScript_OpenFirstAndSecondStairs
|
||||
goto_if_lt VAR_ICE_STEP_COUNT, 8, SootopolisCity_Gym_1F_EventScript_StopCheckingStairs @ All stairs ice
|
||||
goto_if_lt VAR_ICE_STEP_COUNT, 28, SootopolisCity_Gym_1F_EventScript_OpenFirstStairs
|
||||
goto_if_lt VAR_ICE_STEP_COUNT, 67, SootopolisCity_Gym_1F_EventScript_OpenFirstAndSecondStairs
|
||||
setmetatile 8, 4, METATILE_SootopolisGym_Stairs, FALSE
|
||||
setmetatile 8, 5, METATILE_SootopolisGym_Stairs, FALSE
|
||||
SootopolisCity_Gym_1F_EventScript_OpenFirstAndSecondStairs::
|
||||
@@ -85,8 +82,7 @@ SootopolisCity_Gym_1F_Movement_FallThroughIce:
|
||||
SootopolisCity_Gym_1F_EventScript_Juan::
|
||||
trainerbattle_single TRAINER_JUAN_1, SootopolisCity_Gym_1F_Text_JuanIntro, SootopolisCity_Gym_1F_Text_JuanDefeat, SootopolisCity_Gym_1F_EventScript_JuanDefeated, NO_MUSIC
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
compare VAR_RESULT, TRUE
|
||||
goto_if_eq SootopolisCity_Gym_1F_EventScript_JuanRematch
|
||||
goto_if_eq VAR_RESULT, TRUE, SootopolisCity_Gym_1F_EventScript_JuanRematch
|
||||
goto_if_unset FLAG_RECEIVED_TM03, SootopolisCity_Gym_1F_EventScript_GiveWaterPulse2
|
||||
goto_if_unset FLAG_BADGE06_GET, SootopolisCity_Gym_1F_EventScript_GoGetFortreeBadge
|
||||
msgbox SootopolisCity_Gym_1F_Text_JuanPostBattle, MSGBOX_DEFAULT
|
||||
@@ -121,16 +117,14 @@ SootopolisCity_Gym_1F_EventScript_JuanDefeated::
|
||||
|
||||
SootopolisCity_Gym_1F_EventScript_GiveWaterPulse::
|
||||
giveitem ITEM_TM03
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq Common_EventScript_BagIsFull
|
||||
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_BagIsFull
|
||||
msgbox SootopolisCity_Gym_1F_Text_ExplainWaterPulse, MSGBOX_DEFAULT
|
||||
setflag FLAG_RECEIVED_TM03
|
||||
return
|
||||
|
||||
SootopolisCity_Gym_1F_EventScript_GiveWaterPulse2::
|
||||
giveitem ITEM_TM03
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq Common_EventScript_ShowBagIsFull
|
||||
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
||||
msgbox SootopolisCity_Gym_1F_Text_ExplainWaterPulse, MSGBOX_DEFAULT
|
||||
setflag FLAG_RECEIVED_TM03
|
||||
release
|
||||
|
||||
Reference in New Issue
Block a user