mirror of https://github.com/pret/pokecrystal.git
Stop using __enum__ + 3
Abuse __enumdir__ instead, for better readability.
This commit is contained in:
parent
da14ba8041
commit
e68713d20e
|
@ -1,5 +1,5 @@
|
||||||
; MovementPointers indexes (see engine/overworld/movement.asm)
|
; MovementPointers indexes (see engine/overworld/movement.asm)
|
||||||
enum_start
|
enum_start 0, +4
|
||||||
|
|
||||||
; Directional movements
|
; Directional movements
|
||||||
|
|
||||||
|
@ -8,98 +8,72 @@ turn_head: MACRO
|
||||||
db movement_turn_head | \1
|
db movement_turn_head | \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
__enum__ = __enum__ + 3
|
|
||||||
|
|
||||||
enum movement_turn_step ; $04
|
enum movement_turn_step ; $04
|
||||||
turn_step: MACRO
|
turn_step: MACRO
|
||||||
db movement_turn_step | \1
|
db movement_turn_step | \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
__enum__ = __enum__ + 3
|
|
||||||
|
|
||||||
enum movement_slow_step ; $08
|
enum movement_slow_step ; $08
|
||||||
slow_step: MACRO
|
slow_step: MACRO
|
||||||
db movement_slow_step | \1
|
db movement_slow_step | \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
__enum__ = __enum__ + 3
|
|
||||||
|
|
||||||
enum movement_step ; $0c
|
enum movement_step ; $0c
|
||||||
step: MACRO
|
step: MACRO
|
||||||
db movement_step | \1
|
db movement_step | \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
__enum__ = __enum__ + 3
|
|
||||||
|
|
||||||
enum movement_big_step ; $10
|
enum movement_big_step ; $10
|
||||||
big_step: MACRO
|
big_step: MACRO
|
||||||
db movement_big_step | \1
|
db movement_big_step | \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
__enum__ = __enum__ + 3
|
|
||||||
|
|
||||||
enum movement_slow_slide_step ; $14
|
enum movement_slow_slide_step ; $14
|
||||||
slow_slide_step: MACRO
|
slow_slide_step: MACRO
|
||||||
db movement_slow_slide_step | \1
|
db movement_slow_slide_step | \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
__enum__ = __enum__ + 3
|
|
||||||
|
|
||||||
enum movement_slide_step ; $18
|
enum movement_slide_step ; $18
|
||||||
slide_step: MACRO
|
slide_step: MACRO
|
||||||
db movement_slide_step | \1
|
db movement_slide_step | \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
__enum__ = __enum__ + 3
|
|
||||||
|
|
||||||
enum movement_fast_slide_step ; $1c
|
enum movement_fast_slide_step ; $1c
|
||||||
fast_slide_step: MACRO
|
fast_slide_step: MACRO
|
||||||
db movement_fast_slide_step | \1
|
db movement_fast_slide_step | \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
__enum__ = __enum__ + 3
|
|
||||||
|
|
||||||
enum movement_turn_away ; $20
|
enum movement_turn_away ; $20
|
||||||
turn_away: MACRO
|
turn_away: MACRO
|
||||||
db movement_turn_away | \1
|
db movement_turn_away | \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
__enum__ = __enum__ + 3
|
|
||||||
|
|
||||||
enum movement_turn_in ; $24
|
enum movement_turn_in ; $24
|
||||||
turn_in: MACRO
|
turn_in: MACRO
|
||||||
db movement_turn_in | \1
|
db movement_turn_in | \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
__enum__ = __enum__ + 3
|
|
||||||
|
|
||||||
enum movement_turn_waterfall ; $28
|
enum movement_turn_waterfall ; $28
|
||||||
turn_waterfall: MACRO
|
turn_waterfall: MACRO
|
||||||
db movement_turn_waterfall | \1
|
db movement_turn_waterfall | \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
__enum__ = __enum__ + 3
|
|
||||||
|
|
||||||
enum movement_slow_jump_step ; $2c
|
enum movement_slow_jump_step ; $2c
|
||||||
slow_jump_step: MACRO
|
slow_jump_step: MACRO
|
||||||
db movement_slow_jump_step | \1
|
db movement_slow_jump_step | \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
__enum__ = __enum__ + 3
|
|
||||||
|
|
||||||
enum movement_jump_step ; $30
|
enum movement_jump_step ; $30
|
||||||
jump_step: MACRO
|
jump_step: MACRO
|
||||||
db movement_jump_step | \1
|
db movement_jump_step | \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
__enum__ = __enum__ + 3
|
|
||||||
|
|
||||||
enum movement_fast_jump_step ; $34
|
enum movement_fast_jump_step ; $34
|
||||||
fast_jump_step: MACRO
|
fast_jump_step: MACRO
|
||||||
db movement_fast_jump_step | \1
|
db movement_fast_jump_step | \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
__enum__ = __enum__ + 3
|
__enumdir__ = +1
|
||||||
|
|
||||||
; Control
|
; Control
|
||||||
enum movement_remove_sliding ; $38
|
enum movement_remove_sliding ; $38
|
||||||
|
|
Loading…
Reference in New Issue