Add some battle frontier constant usage
This commit is contained in:
+4
-3
@@ -42,9 +42,10 @@
|
||||
#include "text_window.h"
|
||||
#include "trainer_card.h"
|
||||
#include "window.h"
|
||||
#include "constants/songs.h"
|
||||
#include "union_room.h"
|
||||
#include "constants/battle_frontier.h"
|
||||
#include "constants/rgb.h"
|
||||
#include "constants/songs.h"
|
||||
|
||||
// Menu actions
|
||||
enum
|
||||
@@ -138,7 +139,7 @@ static bool8 FieldCB_ReturnToFieldStartMenu(void);
|
||||
|
||||
static const struct WindowTemplate sSafariBallsWindowTemplate = {0, 1, 1, 9, 4, 0xF, 8};
|
||||
|
||||
static const u8* const sPyramidFloorNames[] =
|
||||
static const u8* const sPyramidFloorNames[FRONTIER_STAGES_PER_CHALLENGE + 1] =
|
||||
{
|
||||
gText_Floor1,
|
||||
gText_Floor2,
|
||||
@@ -392,7 +393,7 @@ static void ShowSafariBallsWindow(void)
|
||||
|
||||
static void ShowPyramidFloorWindow(void)
|
||||
{
|
||||
if (gSaveBlock2Ptr->frontier.curChallengeBattleNum == 7)
|
||||
if (gSaveBlock2Ptr->frontier.curChallengeBattleNum == FRONTIER_STAGES_PER_CHALLENGE)
|
||||
sBattlePyramidFloorWindowId = AddWindow(&sPyramidFloorWindowTemplate_1);
|
||||
else
|
||||
sBattlePyramidFloorWindowId = AddWindow(&sPyramidFloorWindowTemplate_2);
|
||||
|
||||
Reference in New Issue
Block a user