made max level for pokemon buddy level 100

This commit is contained in:
phixxy 2024-01-09 12:12:05 -08:00
parent 906e58bdb5
commit 3bb66909e2

View file

@ -1723,7 +1723,7 @@ async def pokemon(ctx, arg1=None, arg2=None, arg3=None, arg4=None):
async def calc_pkmn_buddy_level(pkmn_json): #this uses the 'fast' xp rate
buddy_xp = pkmn_json['buddy_xp']
return math.floor(((5*buddy_xp)/4)**(1/3))
return min(math.floor(((5*buddy_xp)/4)**(1/3)),100)
async def make_pmkn_embed(pkmn_dict):
if pkmn_dict['nickname']: