You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Move-unique effect commands consistently go in engine/battle/move_effects/
This commit is contained in:
28
engine/battle/move_effects/pay_day.asm
Normal file
28
engine/battle/move_effects/pay_day.asm
Normal file
@@ -0,0 +1,28 @@
|
||||
BattleCommand_PayDay: ; 3705c
|
||||
; payday
|
||||
|
||||
xor a
|
||||
ld hl, StringBuffer1
|
||||
ld [hli], a
|
||||
|
||||
ld a, [hBattleTurn]
|
||||
and a
|
||||
ld a, [BattleMonLevel]
|
||||
jr z, .ok
|
||||
ld a, [EnemyMonLevel]
|
||||
.ok
|
||||
|
||||
add a
|
||||
ld hl, wPayDayMoney + 2
|
||||
add [hl]
|
||||
ld [hld], a
|
||||
jr nc, .done
|
||||
inc [hl]
|
||||
dec hl
|
||||
jr nz, .done
|
||||
inc [hl]
|
||||
.done
|
||||
ld hl, CoinsScatteredText
|
||||
jp StdBattleTextBox
|
||||
|
||||
; 3707f
|
||||
Reference in New Issue
Block a user