mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Clean up the growth_rate macro.
This commit is contained in:
parent
8d2b9f3fcb
commit
fc16533207
10
main.asm
10
main.asm
@ -61360,13 +61360,13 @@ Function50eed: ; 50eed
|
|||||||
GrowthRates: ; 50efa
|
GrowthRates: ; 50efa
|
||||||
|
|
||||||
growth_rate: MACRO
|
growth_rate: MACRO
|
||||||
; [1]/[2]*n^3 + [3]*n^2 + [4]*n - [5]
|
; [1]/[2]*n**3 + [3]*n**2 + [4]*n - [5]
|
||||||
dn \1, \2
|
dn \1, \2
|
||||||
IF \3 & $80 ; signed
|
if \3 & $80 ; signed
|
||||||
db ((\3 ^ $ff) + 1) | $80
|
db -\3 | $80
|
||||||
ELSE
|
else
|
||||||
db \3
|
db \3
|
||||||
ENDC
|
endc
|
||||||
db \4, \5
|
db \4, \5
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user