- 4
- Posts
- 8
- Years
- Seen Oct 25, 2024
I'm making a Pokemon game in Java and am just finishing up the original 151, but I can't figure out the stat formula.
I assumed the "Gen III and onward" formula on the Statistics page of Bulbapedia would work, but it doesn't.
For testing purposes I set all their base stats and made them level 50 by default since that's what I'm most used to comparing stats by (ORAS online battles).
But their stats are just...wrong.
Here's an example of what I mean. Everything is correct in the printout except the level 50 stats:
See how Current Stats is wayy off? I don't think I messed the equation up...
I assumed the "Gen III and onward" formula on the Statistics page of Bulbapedia would work, but it doesn't.
For testing purposes I set all their base stats and made them level 50 by default since that's what I'm most used to comparing stats by (ORAS online battles).
But their stats are just...wrong.
Here's an example of what I mean. Everything is correct in the printout except the level 50 stats:
Code:
#25 - Pikachu @ Lv.50 [Electric/Electric]
Base Stats: [[35,55,40,50,50,90]]
Current Stats: [[60,6,6,6,6,7]]
Egg: Pikachu - Evolves into Raichu with Thunder Stone.
#26 - Raichu @ Lv.50 [Electric/Electric]
Base Stats: [[60,90,55,90,80,110]]
Current Stats: [[61,7,6,6,6,7]]
Egg: Pikachu - Doesn't evolve.
See how Current Stats is wayy off? I don't think I messed the equation up...
Code:
HP: i = ((2 * hp + ivs[statId] + (evs[statId] / 4) * level) / 100) + level + 10;
Other stats: i = ((2 * stat + ivs[statId] + (evs[statId] / 4) * level) / 100) + 5;