ref: 69185e165755f4a03a5bbce9dd87e7e543a0f3ab
parent: c65325491dd02e43d01ec0673fad2e99f6e61663
author: Rangi <[email protected]>
date: Wed Dec 22 16:38:26 EST 2021
Identify some overworld movement data
--- a/constants/map_object_constants.asm
+++ b/constants/map_object_constants.asm
@@ -169,7 +169,7 @@
const SPRITEMOVEDATA_SWIM_WANDER ; 24
NUM_SPRITEMOVEDATA EQU const_value
-; MapObjectMovementPattern.Pointers indexes (see engine/overworld/map_objects.asm)
+; StepFunction_FromMovement.Pointers indexes (see engine/overworld/map_objects.asm)
const_def
const SPRITEMOVEFN_00 ; 00
const SPRITEMOVEFN_RANDOM_WALK_Y ; 01
--- a/engine/events/overworld.asm
+++ b/engine/events/overworld.asm
@@ -1322,7 +1322,7 @@
call GetFacingObject
jr c, .no_rock
ld a, d
- cp $18
+ cp SPRITEMOVEDATA_SMASHABLE_ROCK
jr nz, .no_rock
ld hl, RockSmashFromMenuScript