You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
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:
@@ -1774,9 +1774,9 @@ Function2a3c:: ; 2a3c
|
||||
|
||||
GetBlockLocation:: ; 2a66
|
||||
ld a, [MapWidth]
|
||||
add $6
|
||||
add 6
|
||||
ld c, a
|
||||
ld b, $0
|
||||
ld b, 0
|
||||
ld hl, wc801
|
||||
add hl, bc
|
||||
ld a, e
|
||||
@@ -1797,7 +1797,7 @@ GetBlockLocation:: ; 2a66
|
||||
.nope
|
||||
ld c, d
|
||||
srl c
|
||||
ld b, $0
|
||||
ld b, 0
|
||||
add hl, bc
|
||||
ret
|
||||
; 2a8b
|
||||
|
@@ -21,9 +21,9 @@ Function1d4b:: ; 1d4b
|
||||
; 1d4f
|
||||
|
||||
|
||||
Function1d4f:: ; 1d4f
|
||||
MenuTextBox:: ; 1d4f
|
||||
push hl
|
||||
call Function1d58
|
||||
call LoadMenuTextBox
|
||||
pop hl
|
||||
jp PrintText
|
||||
; 1d57
|
||||
@@ -32,7 +32,7 @@ Function1d57:: ; 1d57
|
||||
ret
|
||||
; 1d58
|
||||
|
||||
Function1d58:: ; 1d58
|
||||
LoadMenuTextBox:: ; 1d58
|
||||
ld hl, MenuDataHeader_0x1d5f
|
||||
call LoadMenuDataHeader
|
||||
ret
|
||||
@@ -46,8 +46,8 @@ MenuDataHeader_0x1d5f:: ; 1d5f
|
||||
db 0 ; default option
|
||||
; 1d67
|
||||
|
||||
Function1d67:: ; 1d67
|
||||
call Function1d4f
|
||||
MenuTextBoxBackup:: ; 1d67
|
||||
call MenuTextBox
|
||||
call WriteBackup
|
||||
ret
|
||||
; 1d6e
|
||||
@@ -252,7 +252,7 @@ MenuFunc_1e7f:: ; 0x1e7f
|
||||
MenuWriteText:: ; 0x1e8c
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
call Function1ebd ; sort out the text
|
||||
call Function1ebd ; sort out the text
|
||||
call Function1eda ; actually write it
|
||||
call Function2e31
|
||||
ld a, [hOAMUpdate]
|
||||
@@ -530,7 +530,7 @@ Function1ff8:: ; 1ff8
|
||||
; 2009
|
||||
|
||||
|
||||
PlayClickSFX:: ; 2009
|
||||
PlayClickSFX:: ; 2009
|
||||
push de
|
||||
ld de, SFX_READ_TEXT_2
|
||||
call PlaySFX
|
||||
@@ -539,7 +539,7 @@ PlayClickSFX:: ; 2009
|
||||
; 0x2012
|
||||
|
||||
Function2012:: ; 2012
|
||||
call Function1d4f
|
||||
call MenuTextBox
|
||||
call CloseText
|
||||
call Function1c07
|
||||
ret
|
||||
|
@@ -363,7 +363,7 @@ VBlank5:: ; 400
|
||||
; bg map
|
||||
; tiles
|
||||
; joypad
|
||||
;
|
||||
;
|
||||
|
||||
ld a, [hROMBank]
|
||||
ld [hROMBankBackup], a
|
||||
|
Reference in New Issue
Block a user