panda1835 commited on
Commit
44e479d
1 Parent(s): 16919c1

Upload utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -318,6 +318,8 @@ def new_streak(intensity):
318
  if metadata["pokemon"][random_dex]["visible"] == True:
319
  energy = poke_energy(streak, intensity)
320
  metadata["pokemon"][random_dex]["energy"] += energy
 
 
321
 
322
  if can_evolve(random_dex, metadata["pokemon"][random_dex]["energy"]):
323
  metadata["pokemon"][random_dex]["visible"] = False
@@ -326,8 +328,6 @@ def new_streak(intensity):
326
  metadata["pokemon"].update(evolve_pokemon)
327
  reward += f"Your **{metadata['pokemon'][random_dex]['name']}** has just evolved into **{metadata['pokemon'][evolve_dex]['name']}**. Hoorayyyyy!!! 🥳.\n\n \n\n"
328
 
329
- reward += f"Your **{metadata['pokemon'][random_dex]['name']}** has just got **{energy} EXP** ☀️.\n\n \n\n"
330
-
331
  break
332
 
333
  metadata["last_streak_day"] = datetime.datetime.today().strftime("%d/%m/%Y")
 
318
  if metadata["pokemon"][random_dex]["visible"] == True:
319
  energy = poke_energy(streak, intensity)
320
  metadata["pokemon"][random_dex]["energy"] += energy
321
+
322
+ reward += f"Your **{metadata['pokemon'][random_dex]['name']}** has just got **{energy} EXP** ☀️.\n\n \n\n"
323
 
324
  if can_evolve(random_dex, metadata["pokemon"][random_dex]["energy"]):
325
  metadata["pokemon"][random_dex]["visible"] = False
 
328
  metadata["pokemon"].update(evolve_pokemon)
329
  reward += f"Your **{metadata['pokemon'][random_dex]['name']}** has just evolved into **{metadata['pokemon'][evolve_dex]['name']}**. Hoorayyyyy!!! 🥳.\n\n \n\n"
330
 
 
 
331
  break
332
 
333
  metadata["last_streak_day"] = datetime.datetime.today().strftime("%d/%m/%Y")