Reformat compare + goto_if/call_if to single statements
This commit is contained in:
@@ -106,8 +106,7 @@ FallarborTown_BattleTentLobby_EventScript_Attendant::
|
||||
lock
|
||||
faceplayer
|
||||
fallarbortent_getprize
|
||||
compare VAR_RESULT, ITEM_NONE
|
||||
goto_if_ne FallarborTown_BattleTentLobby_EventScript_PrizeWaiting
|
||||
goto_if_ne VAR_RESULT, ITEM_NONE, FallarborTown_BattleTentLobby_EventScript_PrizeWaiting
|
||||
special SavePlayerParty
|
||||
msgbox FallarborTown_BattleTentLobby_Text_WelcomeToBattleTent, MSGBOX_DEFAULT
|
||||
FallarborTown_BattleTentLobby_EventScript_AskEnterChallenge::
|
||||
@@ -125,8 +124,7 @@ FallarborTown_BattleTentLobby_EventScript_TryEnterChallenge::
|
||||
setvar VAR_FRONTIER_BATTLE_MODE, FRONTIER_MODE_SINGLES
|
||||
setvar VAR_RESULT, 2
|
||||
frontier_checkineligible
|
||||
compare VAR_0x8004, TRUE
|
||||
goto_if_eq FallarborTown_BattleTentLobby_EventScript_NotEnoughValidMons
|
||||
goto_if_eq VAR_0x8004, TRUE, FallarborTown_BattleTentLobby_EventScript_NotEnoughValidMons
|
||||
frontier_set FRONTIER_DATA_LVL_MODE, FRONTIER_LVL_TENT
|
||||
msgbox FallarborTown_BattleTentLobby_Text_SelectThreeMons, MSGBOX_DEFAULT
|
||||
fadescreen FADE_TO_BLACK
|
||||
@@ -134,8 +132,7 @@ FallarborTown_BattleTentLobby_EventScript_TryEnterChallenge::
|
||||
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
|
||||
special ChoosePartyForBattleFrontier
|
||||
waitstate
|
||||
compare VAR_RESULT, 0
|
||||
goto_if_eq FallarborTown_BattleTentLobby_EventScript_LoadPartyCancelChallenge
|
||||
goto_if_eq VAR_RESULT, 0, FallarborTown_BattleTentLobby_EventScript_LoadPartyCancelChallenge
|
||||
msgbox FallarborTown_BattleTentLobby_Text_SaveBeforeChallenge, MSGBOX_YESNO
|
||||
switch VAR_RESULT
|
||||
case NO, FallarborTown_BattleTentLobby_EventScript_LoadPartyCancelChallenge
|
||||
@@ -153,8 +150,7 @@ FallarborTown_BattleTentLobby_EventScript_SaveBeforeChallenge::
|
||||
delay 2
|
||||
call Common_EventScript_SaveGame
|
||||
setvar VAR_TEMP_0, 255
|
||||
compare VAR_RESULT, 0
|
||||
goto_if_eq FallarborTown_BattleTentLobby_EventScript_CancelChallengeSaveFailed
|
||||
goto_if_eq VAR_RESULT, 0, FallarborTown_BattleTentLobby_EventScript_CancelChallengeSaveFailed
|
||||
FallarborTown_BattleTentLobby_EventScript_EnterChallenge::
|
||||
special SavePlayerParty
|
||||
frontier_setpartyorder FRONTIER_PARTY_SIZE
|
||||
|
||||
Reference in New Issue
Block a user