Reformat compare + goto_if/call_if to single statements
This commit is contained in:
@@ -6,8 +6,7 @@ FallarborTown_CozmosHouse_EventScript_ProfCozmo::
|
||||
faceplayer
|
||||
goto_if_set FLAG_RECEIVED_TM27, FallarborTown_CozmosHouse_EventScript_GaveMeteorite
|
||||
checkitem ITEM_METEORITE
|
||||
compare VAR_RESULT, TRUE
|
||||
goto_if_eq FallarborTown_CozmosHouse_EventScript_PlayerHasMeteorite
|
||||
goto_if_eq VAR_RESULT, TRUE, FallarborTown_CozmosHouse_EventScript_PlayerHasMeteorite
|
||||
msgbox FallarborTown_CozmosHouse_Text_MeteoriteWillNeverBeMineNow, MSGBOX_DEFAULT
|
||||
release
|
||||
end
|
||||
@@ -15,12 +14,10 @@ FallarborTown_CozmosHouse_EventScript_ProfCozmo::
|
||||
FallarborTown_CozmosHouse_EventScript_PlayerHasMeteorite::
|
||||
call_if_unset FLAG_TEMP_2, FallarborTown_CozmosHouse_EventScript_NoticeMeteorite
|
||||
call_if_set FLAG_TEMP_2, FallarborTown_CozmosHouse_EventScript_AskForMeteorite
|
||||
compare VAR_RESULT, NO
|
||||
goto_if_eq FallarborTown_CozmosHouse_EventScript_DeclineGiveMeteorite
|
||||
goto_if_eq VAR_RESULT, NO, FallarborTown_CozmosHouse_EventScript_DeclineGiveMeteorite
|
||||
msgbox FallarborTown_CozmosHouse_Text_PleaseUseThisTM, MSGBOX_DEFAULT
|
||||
giveitem ITEM_TM27
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq Common_EventScript_ShowBagIsFull
|
||||
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
||||
setvar VAR_0x8004, ITEM_METEORITE
|
||||
call Common_EventScript_PlayerHandedOverTheItem
|
||||
setflag FLAG_RECEIVED_TM27
|
||||
|
||||
Reference in New Issue
Block a user