mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
22 lines
254 B
NASM
22 lines
254 B
NASM
GetTrainerDVs:
|
|
; Return the DVs of wOtherTrainerClass in bc
|
|
|
|
push hl
|
|
ld a, [wOtherTrainerClass]
|
|
dec a
|
|
ld c, a
|
|
ld b, 0
|
|
|
|
ld hl, TrainerClassDVs
|
|
add hl, bc
|
|
add hl, bc
|
|
|
|
ld a, [hli]
|
|
ld b, a
|
|
ld c, [hl]
|
|
|
|
pop hl
|
|
ret
|
|
|
|
INCLUDE "data/trainers/dvs.asm"
|