You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Consistent constants for radio data table sizes (could still be better)
This commit is contained in:
@@ -262,9 +262,7 @@ Buena_PrizeMenu:
|
||||
dba .prizeitem
|
||||
dba .prizepoints
|
||||
|
||||
NUM_BUENA_PRIZES EQU 9 ; ((BuenaPrizeItems.End - BuenaPrizeItems) / 2)
|
||||
|
||||
.indices
|
||||
.indices:
|
||||
db NUM_BUENA_PRIZES
|
||||
x = 1
|
||||
rept NUM_BUENA_PRIZES
|
||||
@@ -273,7 +271,7 @@ x = x + 1
|
||||
endr
|
||||
db -1
|
||||
|
||||
.prizeitem
|
||||
.prizeitem:
|
||||
ld a, [wMenuSelection]
|
||||
call Buena_getprize
|
||||
ld a, [hl]
|
||||
@@ -284,7 +282,7 @@ endr
|
||||
call PlaceString
|
||||
ret
|
||||
|
||||
.prizepoints
|
||||
.prizepoints:
|
||||
ld a, [wMenuSelection]
|
||||
call Buena_getprize
|
||||
inc hl
|
||||
|
Reference in New Issue
Block a user