Document safari zone scripts
This commit is contained in:
@@ -23,10 +23,10 @@ struct PokeblockFeeder
|
||||
|
||||
#define NUM_POKEBLOCK_FEEDERS 10
|
||||
|
||||
extern const u8 EventScript_2A4B8A[];
|
||||
extern const u8 EventScript_2A4B6F[];
|
||||
extern const u8 EventScript_2A4B4C[];
|
||||
extern const u8 EventScript_2A4B9B[];
|
||||
extern const u8 SafariZone_EventScript_TimesUp[];
|
||||
extern const u8 SafariZone_EventScript_RetirePrompt[];
|
||||
extern const u8 SafariZone_EventScript_OutOfBallsMidBattle[];
|
||||
extern const u8 SafariZone_EventScript_OutOfBalls[];
|
||||
|
||||
EWRAM_DATA u8 gNumSafariBalls = 0;
|
||||
EWRAM_DATA static u16 sSafariZoneStepCounter = 0;
|
||||
@@ -83,7 +83,7 @@ bool8 SafariZoneTakeStep(void)
|
||||
sSafariZoneStepCounter--;
|
||||
if (sSafariZoneStepCounter == 0)
|
||||
{
|
||||
ScriptContext1_SetupScript(EventScript_2A4B8A);
|
||||
ScriptContext1_SetupScript(SafariZone_EventScript_TimesUp);
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
@@ -91,7 +91,7 @@ bool8 SafariZoneTakeStep(void)
|
||||
|
||||
void SafariZoneRetirePrompt(void)
|
||||
{
|
||||
ScriptContext1_SetupScript(EventScript_2A4B6F);
|
||||
ScriptContext1_SetupScript(SafariZone_EventScript_RetirePrompt);
|
||||
}
|
||||
|
||||
void CB2_EndSafariBattle(void)
|
||||
@@ -105,14 +105,14 @@ void CB2_EndSafariBattle(void)
|
||||
}
|
||||
else if (gBattleOutcome == B_OUTCOME_NO_SAFARI_BALLS)
|
||||
{
|
||||
ScriptContext2_RunNewScript(EventScript_2A4B4C);
|
||||
ScriptContext2_RunNewScript(SafariZone_EventScript_OutOfBallsMidBattle);
|
||||
WarpIntoMap();
|
||||
gFieldCallback = sub_80AF6F0;
|
||||
SetMainCallback2(CB2_LoadMap);
|
||||
}
|
||||
else if (gBattleOutcome == B_OUTCOME_CAUGHT)
|
||||
{
|
||||
ScriptContext1_SetupScript(EventScript_2A4B9B);
|
||||
ScriptContext1_SetupScript(SafariZone_EventScript_OutOfBalls);
|
||||
ScriptContext1_Stop();
|
||||
SetMainCallback2(CB2_ReturnToFieldContinueScriptPlayMapMusic);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user