mirror of
https://github.com/pret/pokeyellow.git
synced 2026-05-09 12:22:04 -05:00
16 lines
348 B
NASM
Executable File
16 lines
348 B
NASM
Executable File
; updates the types of a party mon (pointed to in hl) to the ones of the mon specified in wd11e
|
|
SetPartyMonTypes: ; 5db5e (17:5b5e)
|
|
call GetPredefRegisters
|
|
ld bc, wPartyMon1Type - wPartyMon1 ; $5
|
|
add hl, bc
|
|
ld a, [wd11e]
|
|
ld [wd0b5], a
|
|
push hl
|
|
call GetMonHeader
|
|
pop hl
|
|
ld a, [W_MONHTYPE1]
|
|
ld [hli], a
|
|
ld a, [W_MONHTYPE2]
|
|
ld [hl], a
|
|
ret
|