diff options
author | Cameron Hall <cameronghall@cox.net> | 2018-01-16 22:25:35 -0600 |
---|---|---|
committer | Cameron Hall <cameronghall@cox.net> | 2018-01-16 22:25:35 -0600 |
commit | 91cfb6a564f73f02eb57792f8a0f4aa82e1867d1 (patch) | |
tree | 16c7a1de365dabdd85dcc3621ea366fb79a5282c /src/field/roamer.c | |
parent | 6b5a7d8611103ab2ee0210dc6d87bd42f4e3317f (diff) |
add debug ifdefs
Diffstat (limited to 'src/field/roamer.c')
-rw-r--r-- | src/field/roamer.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/field/roamer.c b/src/field/roamer.c index 2eb26ef9d..16a42e9f1 100644 --- a/src/field/roamer.c +++ b/src/field/roamer.c @@ -1,7 +1,9 @@ #include "global.h" +#include "debug.h" #include "roamer.h" #include "pokemon.h" #include "random.h" +#include "region_map.h" #include "constants/species.h" #ifdef SAPPHIRE @@ -224,3 +226,20 @@ void GetRoamerLocation(u8 *mapGroup, u8 *mapNum) *mapGroup = sRoamerLocation[MAP_GRP]; *mapNum = sRoamerLocation[MAP_NUM]; } + +#ifdef DEBUG +void debug_sub_814A714(void) +{ + if (gSaveBlock1.location.mapGroup == 0) + { + CreateInitialRoamerMon(); + sRoamerLocation[0] = 0; + sRoamerLocation[1] = gSaveBlock1.location.mapNum; + } +} + +void debug_sub_814A73C(u8* str) +{ + GetMapSectionName(str, sRoamerLocation[1], 0); +} +#endif |