summaryrefslogtreecommitdiff
path: root/src/pokemon.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/pokemon.c
parent646533cfa3c8c42aee3efedaadfe49e495b64892 (diff)
parentd4125fef9bc9adb95c7a5fb5b8be903b34adc510 (diff)
Merge pull request #543 from pret/mapdata
Convert map data to JSON
Diffstat (limited to 'src/pokemon.c')
-rw-r--r--src/pokemon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pokemon.c b/src/pokemon.c
index e325e1992..5f1664450 100644
--- a/src/pokemon.c
+++ b/src/pokemon.c
@@ -37,6 +37,7 @@
#include "constants/battle_move_effects.h"
#include "constants/hold_effects.h"
#include "constants/items.h"
+#include "constants/layouts.h"
#include "constants/moves.h"
#include "constants/songs.h"
#include "constants/species.h"
@@ -6848,7 +6849,7 @@ void SetWildMonHeldItem(void)
var1 = 20;
var2 = 80;
}
- if (gMapHeader.mapLayoutId == 0x1A4)
+ if (gMapHeader.mapLayoutId == LAYOUT_ALTERING_CAVE)
{
s32 alteringCaveId = GetWildMonTableIdInAlteringCave(species);
if (alteringCaveId != 0)