[Oc-pm] pokemon

Bob Mathews bobmath11 at icloud.com
Wed Sep 28 10:23:49 PDT 2016


Since I’m sure you’re all wondering, here are the formulas for calculating Combat Power (CP) in Pokemon Go:

$cp = $attack * sqrt($defense * $stamina) * $mult;
$attack = $attack_base + int(rand 16);
$defense = $defense_base + int(rand 16);
$stamina = $stamina_base + int(rand 16);
$mult = $lvl < 10 ? 0.00188522509 * $lvl - 0.00100162557
      : $lvl < 20 ? 0.00178380524 * $lvl + 0.00001257208
      : $lvl < 30 ? 0.00178498135 * $lvl - 0.00001095185
      :             0.00089189216 * $lvl + 0.02678172352;

Where $lvl is the pokemon level (which can be up to player level + 1.5), *_base are the species base stats, and $attack, $defense, and $stamina are the individual stats (not visible in the game).

Have a nice month!

 -bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/oc-pm/attachments/20160928/090a5aec/attachment.html>


More information about the Oc-pm mailing list