mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
25 lines
325 B
NASM
25 lines
325 B
NASM
BattleCommand_PayDay:
|
|
xor a
|
|
ld hl, wStringBuffer1
|
|
ld [hli], a
|
|
|
|
ldh a, [hBattleTurn]
|
|
and a
|
|
ld a, [wBattleMonLevel]
|
|
jr z, .ok
|
|
ld a, [wEnemyMonLevel]
|
|
.ok
|
|
|
|
add a
|
|
ld hl, wPayDayCoins + 2
|
|
add [hl]
|
|
ld [hld], a
|
|
jr nc, .done
|
|
inc [hl]
|
|
dec hl
|
|
jr nz, .done
|
|
inc [hl]
|
|
.done
|
|
ld hl, ChipsScatteredText
|
|
jp StdBattleTextbox
|