Trainer data structure and field move functions

Trainer data in map scripts is now a macro-defined structure.

Field move functions in main.asm are now nearly completely annotated, with local references.

Trailing white space deleted.
This commit is contained in:
PikalaxALT
2015-07-18 23:45:39 -04:00
parent e674869018
commit 60cd04b023
116 changed files with 2148 additions and 8705 deletions

View File

@@ -2446,19 +2446,19 @@ Function503d: ; 503d
; 5041
Function5041: ; 5041
call Function5055
call CopyMovementPointer
.loop
xor a
ld [wc2ea], a
call Function505e
call Function506b
call GetMovementByte
call DoMovementFunction
ld a, [wc2ea]
and a
jr nz, .loop
ret
; 5055
Function5055: ; 5055
CopyMovementPointer: ; 5055
ld a, l
ld [wc2eb], a
ld a, h
@@ -2466,7 +2466,7 @@ Function5055: ; 5055
ret
; 505e
Function505e: ; 505e
GetMovementByte: ; 505e
ld hl, wc2eb
ld a, [hli]
ld h, [hl]
@@ -2480,7 +2480,7 @@ Function5065: ; 5065
ret
; 506b
Function506b: ; 506b
DoMovementFunction: ; 506b
push af
call Function54b8
pop af