Reformat compare + goto_if/call_if to single statements
This commit is contained in:
@@ -11,19 +11,16 @@ PacifidlogTown_House2_EventScript_FanClubYoungerBrother::
|
||||
call_if_unset FLAG_MET_FANCLUB_YOUNGER_BROTHER, PacifidlogTown_House2_EventScript_FirstMonAssessment
|
||||
setflag FLAG_MET_FANCLUB_YOUNGER_BROTHER
|
||||
specialvar VAR_RESULT, GetLeadMonFriendshipScore
|
||||
compare VAR_RESULT, 4
|
||||
goto_if_ge PacifidlogTown_House2_EventScript_GiveReturn
|
||||
goto_if_ge VAR_RESULT, 4, PacifidlogTown_House2_EventScript_GiveReturn
|
||||
specialvar VAR_RESULT, GetLeadMonFriendshipScore
|
||||
compare VAR_RESULT, 2
|
||||
goto_if_ge PacifidlogTown_House2_EventScript_PutInEffort
|
||||
goto_if_ge VAR_RESULT, 2, PacifidlogTown_House2_EventScript_PutInEffort
|
||||
goto PacifidlogTown_House2_EventScript_GiveFrustration
|
||||
end
|
||||
|
||||
PacifidlogTown_House2_EventScript_UpdateFanClubTMFlag::
|
||||
goto_if_unset FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK, Common_EventScript_NopReturn
|
||||
specialvar VAR_RESULT, GetDaysUntilPacifidlogTMAvailable
|
||||
compare VAR_RESULT, 0
|
||||
call_if_eq PacifidlogTown_House2_EventScript_ClearReceivedFanClubTM
|
||||
call_if_eq VAR_RESULT, 0, PacifidlogTown_House2_EventScript_ClearReceivedFanClubTM
|
||||
return
|
||||
|
||||
PacifidlogTown_House2_EventScript_MonAssessment::
|
||||
@@ -42,8 +39,7 @@ PacifidlogTown_House2_EventScript_ClearReceivedFanClubTM::
|
||||
PacifidlogTown_House2_EventScript_GiveReturn::
|
||||
msgbox PacifidlogTown_House2_Text_AdoringPokemonTakeThis, MSGBOX_DEFAULT
|
||||
giveitem ITEM_TM27
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq Common_EventScript_ShowBagIsFull
|
||||
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
||||
setflag FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK
|
||||
special SetPacifidlogTMReceivedDay
|
||||
msgbox PacifidlogTown_House2_Text_ExplainReturnFrustration, MSGBOX_DEFAULT
|
||||
@@ -58,8 +54,7 @@ PacifidlogTown_House2_EventScript_PutInEffort::
|
||||
PacifidlogTown_House2_EventScript_GiveFrustration::
|
||||
msgbox PacifidlogTown_House2_Text_ViciousPokemonTakeThis, MSGBOX_DEFAULT
|
||||
giveitem ITEM_TM21
|
||||
compare VAR_RESULT, FALSE
|
||||
goto_if_eq Common_EventScript_ShowBagIsFull
|
||||
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
|
||||
setflag FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK
|
||||
special SetPacifidlogTMReceivedDay
|
||||
msgbox PacifidlogTown_House2_Text_ExplainReturnFrustration, MSGBOX_DEFAULT
|
||||
|
||||
Reference in New Issue
Block a user