Reformat compare + goto_if/call_if to single statements
This commit is contained in:
@@ -51,8 +51,7 @@ MossdeepCity_Gym_EventScript_SetSwitch4Metatiles::
|
||||
MossdeepCity_Gym_EventScript_TateAndLiza::
|
||||
trainerbattle_double TRAINER_TATE_AND_LIZA_1, MossdeepCity_Gym_Text_TateAndLizaIntro, MossdeepCity_Gym_Text_TateAndLizaDefeat, MossdeepCity_Gym_Text_TateAndLizaNeedTwoMons, MossdeepCity_Gym_EventScript_TateAndLizaDefeated, NO_MUSIC
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
compare VAR_RESULT, TRUE
|
||||
goto_if_eq MossdeepCity_Gym_EventScript_TateAndLizaRematch
|
||||
goto_if_eq VAR_RESULT, TRUE, MossdeepCity_Gym_EventScript_TateAndLizaRematch
|
||||
goto_if_unset FLAG_RECEIVED_TM04, MossdeepCity_Gym_EventScript_GiveCalmMind2
|
||||
msgbox MossdeepCity_Gym_Text_TateAndLizaPostBattle, MSGBOX_DEFAULT
|
||||
release
|
||||
@@ -92,8 +91,7 @@ MossdeepCity_Gym_EventScript_TateAndLizaDefeated::
|
||||
|
||||
MossdeepCity_Gym_EventScript_GiveCalmMind2::
|
||||
giveitem ITEM_TM04
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq Common_EventScript_ShowBagIsFull
|
||||
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
||||
msgbox MossdeepCity_Gym_Text_ExplainCalmMind, MSGBOX_DEFAULT
|
||||
setflag FLAG_RECEIVED_TM04
|
||||
release
|
||||
@@ -101,8 +99,7 @@ MossdeepCity_Gym_EventScript_GiveCalmMind2::
|
||||
|
||||
MossdeepCity_Gym_EventScript_GiveCalmMind::
|
||||
giveitem ITEM_TM04
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq Common_EventScript_BagIsFull
|
||||
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_BagIsFull
|
||||
msgbox MossdeepCity_Gym_Text_ExplainCalmMind, MSGBOX_DEFAULT
|
||||
setflag FLAG_RECEIVED_TM04
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user