Added a function for the EXP formula.

This commit is contained in:
Eevee 2009-03-27 19:49:20 -04:00
parent 67af605e8d
commit afa6c061b6
1 changed files with 7 additions and 0 deletions

View File

@ -19,3 +19,10 @@ def calculated_hp(base_hp, level, iv, effort):
return 1
return (base_hp * 2 + iv + effort // 4) * level // 100 + 10 + level
def earned_exp(base_exp, level):
"""Returns the amount of EXP earned when defeating a Pokémon at the given
level.
"""
return base_exp * level // 7