summaryrefslogtreecommitdiff
path: root/src/fldeff_rocksmash.c
diff options
context:
space:
mode:
authorPhlosioneer <mattmdrr2@gmail.com>2019-02-15 18:24:55 -0500
committerPhlosioneer <mattmdrr2@gmail.com>2019-02-15 18:24:55 -0500
commite90e3458cb0836a5a027b4ed59fd05f34f904bcf (patch)
treee169298ac707b68923d701919cb8401632e00d1a /src/fldeff_rocksmash.c
parente95140270be790b03e693f539770abfd6473916e (diff)
Document the regi* code more
Fixed some confusing naming, named some unknown symbols, and fixed the names of some flags.
Diffstat (limited to 'src/fldeff_rocksmash.c')
-rw-r--r--src/fldeff_rocksmash.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fldeff_rocksmash.c b/src/fldeff_rocksmash.c
index 9181b5532..86df8e943 100644
--- a/src/fldeff_rocksmash.c
+++ b/src/fldeff_rocksmash.c
@@ -119,11 +119,13 @@ static void sub_813561C(u8 taskId)
bool8 SetUpFieldMove_RockSmash(void)
{
- if (ShouldDoBrailleStrengthEffect())
+ // In Ruby and Sapphire, Regirock's tomb is opened by using Strength. In Emerald,
+ // it is opened by using Rock Smash.
+ if (ShouldDoBrailleRegirockEffect())
{
gSpecialVar_Result = GetCursorSelectionMonId();
gFieldCallback2 = FieldCallback_PrepareFadeInFromMenu;
- gPostMenuFieldCallback = sub_8179834;
+ gPostMenuFieldCallback = SetUpPuzzleEffectRegirock;
return TRUE;
}
else if (CheckObjectGraphicsInFrontOfPlayer(EVENT_OBJ_GFX_BREAKABLE_ROCK) == TRUE)