You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Fix misnamed character codes
Some character codes were erroneously named after their text command counterparts. This has caused a lot of confusion with naming their functions and with other things. I've also removed the `dict2` macro and expanded the `dict` macro. This really isn't something we should be doing for macros but I can't deny it looks a lot neater than repeated code.
This commit is contained in:
@@ -3570,25 +3570,25 @@ Palette_17eff6:
|
||||
RGB 24, 16, 3
|
||||
RGB 0, 0, 0
|
||||
|
||||
Function17f036::
|
||||
RunMobileScript::
|
||||
ld a, $6
|
||||
call GetSRAMBank
|
||||
inc de
|
||||
.asm_17f03c
|
||||
call Function17f047
|
||||
jr c, .asm_17f043
|
||||
jr .asm_17f03c
|
||||
.loop
|
||||
call _RunMobileScript
|
||||
jr c, .finished
|
||||
jr .loop
|
||||
|
||||
.asm_17f043
|
||||
.finished
|
||||
call CloseSRAM
|
||||
ret
|
||||
|
||||
Function17f047:
|
||||
_RunMobileScript:
|
||||
ld a, [de]
|
||||
inc de
|
||||
cp $50
|
||||
jr z, .finished
|
||||
cp $10
|
||||
cp $10 ; jumptable size
|
||||
jr nc, .finished
|
||||
dec a
|
||||
push de
|
||||
|
||||
Reference in New Issue
Block a user