2018-06-24 14:09:41 +00:00
|
|
|
GetBreedMon1LevelGrowth:
|
2020-10-26 19:45:57 +00:00
|
|
|
ld hl, wBreedMon1
|
2018-01-23 22:39:09 +00:00
|
|
|
ld de, wTempMon
|
2017-12-17 00:00:50 +00:00
|
|
|
ld bc, BOXMON_STRUCT_LENGTH
|
|
|
|
call CopyBytes
|
2017-12-24 17:47:30 +00:00
|
|
|
callfar CalcLevel
|
2017-12-17 00:00:50 +00:00
|
|
|
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:
|
2020-10-26 19:45:57 +00:00
|
|
|
ld hl, wBreedMon2
|
2018-01-23 22:39:09 +00:00
|
|
|
ld de, wTempMon
|
2017-12-17 00:00:50 +00:00
|
|
|
ld bc, BOXMON_STRUCT_LENGTH
|
|
|
|
call CopyBytes
|
2017-12-24 17:47:30 +00:00
|
|
|
callfar CalcLevel
|
2017-12-17 00:00:50 +00:00
|
|
|
ld a, [wBreedMon2Level]
|
|
|
|
ld b, a
|
|
|
|
ld a, d
|
|
|
|
ld e, a
|
|
|
|
sub b
|
|
|
|
ld d, a
|
|
|
|
ret
|