mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08: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
|
||||
|
||||
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
|
||||
IF \3 & $80 ; signed
|
||||
db ((\3 ^ $ff) + 1) | $80
|
||||
ELSE
|
||||
if \3 & $80 ; signed
|
||||
db -\3 | $80
|
||||
else
|
||||
db \3
|
||||
ENDC
|
||||
endc
|
||||
db \4, \5
|
||||
ENDM
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user