diff options
author | Cameron Hall <camthesaxman@users.noreply.github.com> | 2018-02-06 19:45:56 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 19:45:56 -0600 |
commit | c79d259508d47a8b5bde5b9060b8fe8c6989bd44 (patch) | |
tree | 912c739848391da17525e57420570b3730053675 /src/rom6.c | |
parent | 5969695b8bbdab5182d0d651bbd2d256a12c0404 (diff) | |
parent | 9a8ec555e68fb143ffe900c778ddb85d5bd145a5 (diff) |
Merge pull request #541 from camthesaxman/german_debug
build German debug version
Diffstat (limited to 'src/rom6.c')
-rw-r--r-- | src/rom6.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/rom6.c b/src/rom6.c index 62fbc987c..06e84cc0f 100644 --- a/src/rom6.c +++ b/src/rom6.c @@ -1,4 +1,6 @@ #include "global.h" +#include "constants/map_objects.h" +#include "constants/songs.h" #include "rom6.h" #include "braille_puzzles.h" #include "field_effect.h" @@ -8,7 +10,6 @@ #include "pokemon_menu.h" #include "overworld.h" #include "script.h" -#include "constants/songs.h" #include "sound.h" #include "sprite.h" #include "task.h" @@ -116,6 +117,21 @@ static void sub_810B4CC(u8 taskId) DestroyTask(taskId); } +#if DEBUG +void debug_sub_8120968(void) +{ + if (npc_before_player_of_type(MAP_OBJ_GFX_BREAKABLE_ROCK) == TRUE) + { + gLastFieldPokeMenuOpened = 0; + sub_810B53C(); + } + else + { + ScriptContext2_Disable(); + } +} +#endif + bool8 SetUpFieldMove_RockSmash(void) { if (npc_before_player_of_type(0x56) == TRUE) |