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:
29
engine/battle/move_effects/magnitude.asm
Normal file
29
engine/battle/move_effects/magnitude.asm
Normal file
@@ -0,0 +1,29 @@
|
||||
BattleCommand_GetMagnitude: ; 37991
|
||||
; getmagnitude
|
||||
|
||||
push bc
|
||||
call BattleRandom
|
||||
ld b, a
|
||||
ld hl, MagnitudePower
|
||||
.loop
|
||||
ld a, [hli]
|
||||
cp b
|
||||
jr nc, .ok
|
||||
inc hl
|
||||
inc hl
|
||||
jr .loop
|
||||
|
||||
.ok
|
||||
ld d, [hl]
|
||||
push de
|
||||
inc hl
|
||||
ld a, [hl]
|
||||
ld [wTypeMatchup], a
|
||||
call BattleCommand_MoveDelay
|
||||
ld hl, MagnitudeText
|
||||
call StdBattleTextBox
|
||||
pop de
|
||||
pop bc
|
||||
ret
|
||||
|
||||
INCLUDE "data/moves/magnitude_power.asm"
|
||||
Reference in New Issue
Block a user