mirror of
https://github.com/pret/pokered.git
synced 2024-10-24 15:27:10 +00:00
36 lines
571 B
NASM
Executable file
36 lines
571 B
NASM
Executable file
PrintSafariZoneBattleText:
|
|
ld hl, wSafariBaitFactor
|
|
ld a, [hl]
|
|
and a
|
|
jr z, .asm_4284
|
|
dec [hl]
|
|
ld hl, SafariZoneEatingText
|
|
jr .asm_429f
|
|
.asm_4284
|
|
dec hl
|
|
ld a, [hl]
|
|
and a
|
|
ret z
|
|
dec [hl]
|
|
ld hl, SafariZoneAngryText
|
|
jr nz, .asm_429f
|
|
push hl
|
|
ld a, [wEnemyMonSpecies]
|
|
ld [wd0b5], a
|
|
call GetMonHeader
|
|
ld a, [wMonHCatchRate]
|
|
ld [wEnemyMonActualCatchRate], a
|
|
pop hl
|
|
.asm_429f
|
|
push hl
|
|
call LoadScreenTilesFromBuffer1
|
|
pop hl
|
|
jp PrintText
|
|
|
|
SafariZoneEatingText:
|
|
TX_FAR _SafariZoneEatingText
|
|
db "@"
|
|
|
|
SafariZoneAngryText:
|
|
TX_FAR _SafariZoneAngryText
|
|
db "@"
|