Reformat compare + goto_if/call_if to single statements
This commit is contained in:
@@ -18,8 +18,7 @@ ShoalCave_LowTideLowerRoom_EventScript_ShoalSalt4::
|
||||
lockall
|
||||
goto_if_set FLAG_RECEIVED_SHOAL_SALT_4, ShoalCave_LowTideLowerRoom_EventScript_ReceivedShoalSalt
|
||||
giveitem ITEM_SHOAL_SALT
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq Common_EventScript_ShowBagIsFull
|
||||
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
||||
setmetatile 18, 2, METATILE_Cave_ShoalCave_DirtPile_Small, FALSE
|
||||
special DrawWholeMapView
|
||||
setflag FLAG_RECEIVED_SHOAL_SALT_4
|
||||
@@ -37,8 +36,7 @@ ShoalCave_LowTideLowerRoom_EventScript_BlackBelt::
|
||||
goto_if_set FLAG_RECEIVED_FOCUS_BAND, ShoalCave_LowTideLowerRoom_EventScript_ReceivedFocusBand
|
||||
msgbox ShoalCave_LowTideLowerRoom_Text_CanOvercomeColdWithFocus, MSGBOX_DEFAULT
|
||||
giveitem ITEM_FOCUS_BAND
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq Common_EventScript_ShowBagIsFull
|
||||
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
||||
setflag FLAG_RECEIVED_FOCUS_BAND
|
||||
release
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user