mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
FieldMoveDisplayData INCBIN.
This commit is contained in:
parent
eb419451e4
commit
42b5451a39
26
main.asm
26
main.asm
|
@ -17676,12 +17676,12 @@ Func_77d6: ; 77d6 (1:77d6)
|
||||||
.asm_77ea
|
.asm_77ea
|
||||||
dec c
|
dec c
|
||||||
jr z, .asm_7821
|
jr z, .asm_7821
|
||||||
ld a, [de]
|
ld a, [de] ; de is RAM address of move
|
||||||
and a
|
and a
|
||||||
jr z, .asm_7821
|
jr z, .asm_7821
|
||||||
ld b, a
|
ld b, a
|
||||||
inc de
|
inc de ; go to next move
|
||||||
ld hl, Unknown_7823 ; $7823
|
ld hl, FieldMoveDisplayData ; $7823
|
||||||
.asm_77f6
|
.asm_77f6
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
cp $ff
|
cp $ff
|
||||||
|
@ -17714,8 +17714,24 @@ Func_77d6: ; 77d6 (1:77d6)
|
||||||
pop hl
|
pop hl
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Unknown_7823: ; 7823 (1:7823)
|
; Format: [Move id], [list priority], [leftmost tile]
|
||||||
INCBIN "baserom.gbc",$7823,$783f - $7823
|
; Move id = id of move
|
||||||
|
; List priority = lower number means higher priority when field moves are displayed
|
||||||
|
; these priorities must be unique
|
||||||
|
; Leftmost tile = -1 + tile column in which the first letter of the move's name should be displayed
|
||||||
|
; "SOFTBOILED" is $08 because it has 4 more letters than "SURF", for example, whose value is $0C
|
||||||
|
FieldMoveDisplayData: ; 7823 (1:7823)
|
||||||
|
db CUT, $01, $0C
|
||||||
|
db FLY, $02, $0C
|
||||||
|
db $B4, $03, $0C ; unused field move
|
||||||
|
db SURF, $04, $0C
|
||||||
|
db STRENGTH, $05, $0A
|
||||||
|
db FLASH, $06, $0C
|
||||||
|
db DIG, $07, $0C
|
||||||
|
db TELEPORT, $08, $0A
|
||||||
|
db SOFTBOILED, $09, $08
|
||||||
|
db $ff ; list terminator
|
||||||
|
|
||||||
|
|
||||||
Func_783f: ; 783f (1:783f)
|
Func_783f: ; 783f (1:783f)
|
||||||
ld hl, W_DAMAGE ; $d0d7
|
ld hl, W_DAMAGE ; $d0d7
|
||||||
|
|
Loading…
Reference in a new issue