diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-02-07 00:40:17 -0500 |
---|---|---|
committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2018-02-07 00:40:17 -0500 |
commit | 0e448936b5f77561f8bb55f3e0d27e7ed5a64c99 (patch) | |
tree | 7c529306c92bcc3e482ef4e0ac89ec941bdc4097 /src/rom6.c | |
parent | 51ade392bf16ae4c87a18f8965b8e650fe983d03 (diff) | |
parent | a395cd7e53ed33634eef4df22814da4ba96a3357 (diff) |
Merge branch 'master' of https://github.com/pret/pokeruby
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 f1cd87164..09f6faac2 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) |