summaryrefslogtreecommitdiff
path: root/src/field/roamer.c
diff options
context:
space:
mode:
authorCameron Hall <camthesaxman@users.noreply.github.com>2018-02-06 19:45:56 -0600
committerGitHub <noreply@github.com>2018-02-06 19:45:56 -0600
commitc79d259508d47a8b5bde5b9060b8fe8c6989bd44 (patch)
tree912c739848391da17525e57420570b3730053675 /src/field/roamer.c
parent5969695b8bbdab5182d0d651bbd2d256a12c0404 (diff)
parent9a8ec555e68fb143ffe900c778ddb85d5bd145a5 (diff)
Merge pull request #541 from camthesaxman/german_debug
build German debug version
Diffstat (limited to 'src/field/roamer.c')
-rw-r--r--src/field/roamer.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/field/roamer.c b/src/field/roamer.c
index 2eb26ef9d..6ed5b6c89 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];
}
+
+#if 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