pokecrystal-board/data/growth_rates.asm

22 lines
579 B
NASM
Raw Normal View History

growth_rate: MACRO
; [1]/[2]*n**3 + [3]*n**2 + [4]*n - [5]
dn \1, \2
if \3 < 0
db -\3 | $80 ; signed magnitude
else
db \3
endc
db \4, \5
ENDM
2018-06-24 07:09:41 -07:00
GrowthRates:
2018-01-31 09:03:43 -08:00
; entries correspond to GROWTH_* (see constants/pokemon_data_constants.asm)
2021-03-22 13:41:17 -07:00
table_width 4, GrowthRates
growth_rate 1, 1, 0, 0, 0 ; Medium Fast
growth_rate 3, 4, 10, 0, 30 ; Slightly Fast
growth_rate 3, 4, 20, 0, 70 ; Slightly Slow
growth_rate 6, 5, -15, 100, 140 ; Medium Slow
growth_rate 4, 5, 0, 0, 0 ; Fast
growth_rate 5, 4, 0, 0, 0 ; Slow
2021-03-22 13:41:17 -07:00
assert_table_length NUM_GROWTH_RATES