Use B_OUTCOME constants for GetBattleOutcome
This commit is contained in:
@@ -25,7 +25,7 @@ Route120_EventScript_1F5406:: @ 81F5406
|
||||
|
||||
Route120_EventScript_1F5449:: @ 81F5449
|
||||
specialvar VAR_RESULT, GetBattleOutcome
|
||||
compare VAR_RESULT, 7
|
||||
compare VAR_RESULT, B_OUTCOME_CAUGHT
|
||||
goto_if_ne Common_EventScript_NopReturn
|
||||
removeobject 30
|
||||
removeobject 36
|
||||
@@ -33,7 +33,7 @@ Route120_EventScript_1F5449:: @ 81F5449
|
||||
|
||||
Route120_EventScript_1F5460:: @ 81F5460
|
||||
specialvar VAR_RESULT, GetBattleOutcome
|
||||
compare VAR_RESULT, 7
|
||||
compare VAR_RESULT, B_OUTCOME_CAUGHT
|
||||
goto_if_ne Common_EventScript_NopReturn
|
||||
removeobject VAR_LAST_TALKED
|
||||
return
|
||||
@@ -215,11 +215,11 @@ Route120_EventScript_1F568B:: @ 81F568B
|
||||
dowildbattle
|
||||
clearflag FLAG_SYS_CTRL_OBJ_DELETE
|
||||
specialvar VAR_RESULT, GetBattleOutcome
|
||||
compare VAR_RESULT, 1
|
||||
compare VAR_RESULT, B_OUTCOME_WON
|
||||
goto_if_eq Route120_EventScript_1F571C
|
||||
compare VAR_RESULT, 4
|
||||
compare VAR_RESULT, B_OUTCOME_RAN
|
||||
goto_if_eq Route120_EventScript_1F571C
|
||||
compare VAR_RESULT, 5
|
||||
compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
|
||||
goto_if_eq Route120_EventScript_1F571C
|
||||
goto Route120_EventScript_1F572C
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user