mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-21 22:52:15 +13:00
move-related things
This commit is contained in:
parent
72bbaed99f
commit
1347023128
10 changed files with 58 additions and 50 deletions
|
|
@ -1,12 +1,12 @@
|
|||
; checks if the mon in wWhichPokemon already knows the move in wd0e0
|
||||
; checks if the mon in [wWhichPokemon] already knows the move in [wMoveNum]
|
||||
CheckIfMoveIsKnown: ; 2fe18 (b:7e18)
|
||||
ld a, [wWhichPokemon]
|
||||
ld hl, wPartyMon1Moves
|
||||
ld bc, $2c
|
||||
ld bc, wPartyMon2 - wPartyMon1
|
||||
call AddNTimes
|
||||
ld a, [wd0e0]
|
||||
ld a, [wMoveNum]
|
||||
ld b, a
|
||||
ld c, $4 ; nubmer of moves
|
||||
ld c, NUM_MOVES
|
||||
.loop
|
||||
ld a, [hli]
|
||||
cp b
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue