-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Labels
Milestone
Description
Hello, can we change the algorithm to calculate how many pokemon can be evolved. Instead of calculating the number based on candy given AFTER evolve and transfer, use something like this:
- total_amount_of_candies / number_of_candies_needed_to_evolve = number_of_evolutions (the remainder can be pulled as leftover_candies)
- leftover_candies + (total_number_of_pokemon - number_of_evolutions) = var (this variable will give us a number of how many leftover candies we have AND how many unusable (extra) pokemon we have)
- var / number_of_candies_needed_to_evolve = more_evolutions (if the result is greater than one it means we have more than one evolution ready just by transferring pokemon to candy, pull the whole number in this case)
- number_of_evolutions_displayed = number_of_evolutions + more_evolutions
Sorry for this horrible pseudocode, never coded anything myself except in MATLAB in university.
DrDragonKiller