mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-22 15:32:16 +13:00
First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
This commit is contained in:
commit
2f8a41f833
4618 changed files with 480386 additions and 0 deletions
21
engine/battle/read_trainer_dvs.asm
Normal file
21
engine/battle/read_trainer_dvs.asm
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue