Skip to content

Request to change "evolvable" calculation #422

@Thunda88

Description

@Thunda88

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:

  1. total_amount_of_candies / number_of_candies_needed_to_evolve = number_of_evolutions (the remainder can be pulled as leftover_candies)
  2. 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)
  3. 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)
  4. number_of_evolutions_displayed = number_of_evolutions + more_evolutions
    Sorry for this horrible pseudocode, never coded anything myself except in MATLAB in university.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions