pokecrystal/engine/pokemon/breedmon_level_growth.asm

28 lines
397 B
NASM
Raw Normal View History

2018-06-24 14:09:41 +00:00
GetBreedMon1LevelGrowth:
ld hl, wBreedMon1
2018-01-23 22:39:09 +00:00
ld de, wTempMon
ld bc, BOXMON_STRUCT_LENGTH
call CopyBytes
2017-12-24 17:47:30 +00:00
callfar CalcLevel
ld a, [wBreedMon1Level]
ld b, a
ld a, d
ld e, a
sub b
ld d, a
ret
2018-06-24 14:09:41 +00:00
GetBreedMon2LevelGrowth:
ld hl, wBreedMon2
2018-01-23 22:39:09 +00:00
ld de, wTempMon
ld bc, BOXMON_STRUCT_LENGTH
call CopyBytes
2017-12-24 17:47:30 +00:00
callfar CalcLevel
ld a, [wBreedMon2Level]
ld b, a
ld a, d
ld e, a
sub b
ld d, a
ret