X-Git-Url: http://git.veekun.com/zzz-pokedex.git/blobdiff_plain/b6f30bf22db8ef0cfc13ed4fbbd1d88c4ec67e17..6ff4ec1d39cbccc5a50c2ecc7124074d1dd15455:/pokedex/formulae.py?ds=sidebyside diff --git a/pokedex/formulae.py b/pokedex/formulae.py index 2059db7..805812d 100644 --- a/pokedex/formulae.py +++ b/pokedex/formulae.py @@ -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