From bae4a586d86ee432cf02dafed160747e7e4aff7e Mon Sep 17 00:00:00 2001 From: GriffinR Date: Thu, 7 Nov 2019 13:26:53 -0500 Subject: Document Hall of Fame scripts --- src/field_specials.c | 2 +- src/save_location.c | 4 ++-- src/union_room.c | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/field_specials.c b/src/field_specials.c index 65bc3a095..b84e4dde9 100644 --- a/src/field_specials.c +++ b/src/field_specials.c @@ -4033,7 +4033,7 @@ void sub_813BA30(void) } } -void sub_813BA60(void) +void UpdateTrainerFanClubGameClear(void) { if (!((gSaveBlock1Ptr->vars[VAR_FANCLUB_UNKNOWN_1 - VARS_START] >> 7) & 1)) { diff --git a/src/save_location.c b/src/save_location.c index 2443b3161..b9d852cf3 100644 --- a/src/save_location.c +++ b/src/save_location.c @@ -129,7 +129,7 @@ void sub_81AFDA0(void) gSaveBlock2Ptr->field_A8 |= 0x8; } -void sub_81AFDD0(void) +void SetChampionSaveWarp(void) { - gSaveBlock2Ptr->specialSaveWarpFlags |= 0x80; + gSaveBlock2Ptr->specialSaveWarpFlags |= CHAMPION_SAVEWARP; } diff --git a/src/union_room.c b/src/union_room.c index 5952b03eb..d22373ea0 100644 --- a/src/union_room.c +++ b/src/union_room.c @@ -30,6 +30,7 @@ #include "party_menu.h" #include "pokemon_jump.h" #include "random.h" +#include "save_location.h" #include "script.h" #include "script_pokemon_util_80F87D8.h" #include "sound.h" @@ -1078,7 +1079,7 @@ u32 sub_8013B8C(struct UnkStruct_Group *arg0, s32 id) if (gUnknown_02022C2C == 4 && structPtr->unk.field_0.unk_00.unk_01_2 != 3) { - if (!(gSaveBlock2Ptr->specialSaveWarpFlags & 0x80)) + if (!(gSaveBlock2Ptr->specialSaveWarpFlags & CHAMPION_SAVEWARP)) return 1; else if (structPtr->unk.field_0.unk_00.isChampion) return 0; -- cgit v1.2.3