Move ReadTrainerTowerAndValidate

This commit is contained in:
GriffinR
2020-01-26 16:50:32 -05:00
parent 9ecd065b50
commit 5106fc1c9a
6 changed files with 10 additions and 11 deletions
+6
View File
@@ -86,3 +86,9 @@ bool32 CEReaderTool_LoadTrainerTower(struct EReaderTrainerHillSet * ttdata)
Free(buffer);
return success;
}
bool32 ReadTrainerTowerAndValidate(void)
{
// Stubbed out. Populated in Emerald
return FALSE;
}
-6
View File
@@ -529,12 +529,6 @@ static const struct RenewableHiddenItemData sRenewableHiddenItems[] = {
},
};
bool32 ReadTrainerHillAndValidate(void)
{
// Stubbed out. Populated in Emerald
return FALSE;
}
void SetAllRenewableItemFlags(void)
{
u8 i, j;
+2 -3
View File
@@ -20,7 +20,6 @@
#include "menu.h"
#include "new_menu_helpers.h"
#include "sound.h"
#include "renewable_hidden_items.h"
#include "constants/flags.h"
#include "constants/vars.h"
#include "constants/items.h"
@@ -523,7 +522,7 @@ static void SetUpTrainerTowerDataStruct(void) // fakematching
sTrainerTowerState = AllocZeroed(sizeof(*sTrainerTowerState));
sTrainerTowerState->floorIdx = gMapHeader.mapLayoutId - 42;
if (ReadTrainerHillAndValidate() == TRUE)
if (ReadTrainerTowerAndValidate() == TRUE)
CEReaderTool_LoadTrainerTower(&sTrainerTowerState->unk_0004);
else
{
@@ -781,7 +780,7 @@ static void StartTrainerTowerChallenge(void)
if (gSaveBlock1Ptr->towerChallengeId >= NUM_TOWER_CHALLENGE_TYPES)
gSaveBlock1Ptr->towerChallengeId = 0;
ValidateOrResetCurTrainerTowerRecord();
if (!ReadTrainerHillAndValidate())
if (!ReadTrainerTowerAndValidate())
TRAINER_TOWER.validated = TRUE;
else
TRAINER_TOWER.validated = FALSE;