move-related things

This commit is contained in:
YamaArashi 2015-02-08 00:17:03 -08:00
parent 72bbaed99f
commit 1347023128
10 changed files with 58 additions and 50 deletions

View file

@ -2084,7 +2084,7 @@ ItemUseTMHM: ; e479 (3:6479)
ld [wd11e],a
predef TMToMove ; get move ID from TM/HM ID
ld a,[wd11e]
ld [wd0e0],a
ld [wMoveNum],a
call GetMoveName
call CopyStringToCF4B ; copy name to wcf4b
pop af

View file

@ -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

View file

@ -1,11 +1,11 @@
; tests if mon [wcf91] can learn move [wd0e0]
; tests if mon [wcf91] can learn move [wMoveNum]
CanLearnTM: ; 1373e (4:773e)
ld a, [wcf91]
ld [wd0b5], a
call GetMonHeader
ld hl, W_MONHLEARNSET
push hl
ld a, [wd0e0]
ld a, [wMoveNum]
ld b, a
ld c, $0
ld hl, TechnicalMachines