mirror of
https://github.com/pret/pokeyellow.git
synced 2026-05-31 23:42:28 -05:00
36 lines
630 B
NASM
36 lines
630 B
NASM
PrintSafariZoneSteps: ; c27b (3:427b)
|
||
ld a, [wCurMap]
|
||
cp SAFARI_ZONE_EAST
|
||
ret c
|
||
cp UNKNOWN_DUNGEON_2
|
||
ret nc
|
||
coord hl, 0, 0
|
||
lb bc, 3, 7
|
||
call TextBoxBorder
|
||
coord hl, 1, 1
|
||
ld de, wSafariSteps
|
||
lb bc, 2, 3
|
||
call PrintNumber
|
||
coord hl, 4, 1
|
||
ld de, SafariSteps
|
||
call PlaceString
|
||
coord hl, 1, 3
|
||
ld de, SafariBallText
|
||
call PlaceString
|
||
ld a, [wNumSafariBalls]
|
||
cp 10
|
||
jr nc, .numSafariBallsTwoDigits
|
||
coord hl, 5, 3
|
||
ld a, " "
|
||
ld [hl], a
|
||
.numSafariBallsTwoDigits
|
||
coord hl, 6, 3
|
||
ld de, wNumSafariBalls
|
||
lb bc, 1, 2
|
||
jp PrintNumber
|
||
|
||
SafariSteps: ; c2c4 (3:42c4)
|
||
db "/500@"
|
||
|
||
SafariBallText: ; c5c9 (3:42c9)
|
||
db "BALL×× @" |