Rename battle files and split move effects Part 1

1.asm, 4.asm, and 4_2.asm
This commit is contained in:
xCrystal 2015-04-01 11:23:27 +02:00
parent 9d93b5b630
commit e74dce24b4
14 changed files with 510 additions and 507 deletions

View file

@ -0,0 +1,16 @@
; returns whether the player is one tile outside the map in Z
IsPlayerJustOutsideMap: ; 128d8 (4:68d8)
ld a, [W_YCOORD]
ld b, a
ld a, [W_CURMAPHEIGHT]
call .compareCoordWithMapDimension
ret z
ld a, [W_XCOORD]
ld b, a
ld a, [W_CURMAPWIDTH]
.compareCoordWithMapDimension
add a
cp b
ret z
inc b
ret