summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorlibjet <libj3t@gmail.com>2020-05-25 15:38:13 +0100
committerlibjet <libj3t@gmail.com>2020-05-25 15:38:13 +0100
commit2c54d71504ab56d947ff2df2b26e8e9ebbd27bca (patch)
tree654cbd9f7d749800934df2bf543ebcac492c2fe5 /data
parent1e5871640db027e6acbafbb968354657ca4c7e75 (diff)
Add engine/pokemon/experience.asm
Diffstat (limited to 'data')
-rwxr-xr-xdata/growth_rates.asm19
1 files changed, 19 insertions, 0 deletions
diff --git a/data/growth_rates.asm b/data/growth_rates.asm
new file mode 100755
index 00000000..aee2a16e
--- /dev/null
+++ b/data/growth_rates.asm
@@ -0,0 +1,19 @@
+growth_rate: MACRO
+; [1]/[2]*n**3 + [3]*n**2 + [4]*n - [5]
+ dn \1, \2
+ if \3 & $80 ; signed
+ db -\3 | $80
+ else
+ db \3
+ endc
+ db \4, \5
+ENDM
+
+GrowthRates:
+; entries correspond to GROWTH_* (see constants/pokemon_data_constants.asm)
+ 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