summaryrefslogtreecommitdiff
path: root/src/battle_pyramid.c
diff options
context:
space:
mode:
authorhuderlem <huderlem@gmail.com>2019-02-04 21:36:18 -0600
committerGitHub <noreply@github.com>2019-02-04 21:36:18 -0600
commitb0ee1009759ed1c46da81b1fb8410e2b75e42bb2 (patch)
treeceee3e124b987b8dd24cb3a7bba85d4effe1ef5d /src/battle_pyramid.c
parent646533cfa3c8c42aee3efedaadfe49e495b64892 (diff)
parentd4125fef9bc9adb95c7a5fb5b8be903b34adc510 (diff)
Merge pull request #543 from pret/mapdata
Convert map data to JSON
Diffstat (limited to 'src/battle_pyramid.c')
-rw-r--r--src/battle_pyramid.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/battle_pyramid.c b/src/battle_pyramid.c
index c0ff1ecf5..ed911d8d9 100644
--- a/src/battle_pyramid.c
+++ b/src/battle_pyramid.c
@@ -30,6 +30,7 @@
#include "constants/event_objects.h"
#include "constants/event_object_movement_constants.h"
#include "constants/items.h"
+#include "constants/layouts.h"
#include "constants/maps.h"
#include "constants/moves.h"
#include "constants/species.h"
@@ -1380,9 +1381,9 @@ u8 GetPyramidRunMultiplier(void)
u8 InBattlePyramid(void)
{
- if (gMapHeader.mapLayoutId == 361)
+ if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE)
return 1;
- else if (gMapHeader.mapLayoutId == 378)
+ else if (gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_TOP)
return 2;
else
return FALSE;
@@ -1390,7 +1391,8 @@ u8 InBattlePyramid(void)
bool8 InBattlePyramid_(void)
{
- return (gMapHeader.mapLayoutId == 361 || gMapHeader.mapLayoutId == 378);
+ return gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_EMPTY_SQUARE
+ || gMapHeader.mapLayoutId == LAYOUT_BATTLE_FRONTIER_BATTLE_PYRAMID_TOP;
}
void sub_81A9E90(void)