dyreschlock / schlock-website

Personal Website code to be run locally or generate a static website hosted through github pages.
http://theschlock.com/
0 stars 0 forks source link

Rocket Counters : Use the raid data to develop correct Rocket counters. #44

Open dyreschlock opened 2 years ago

dyreschlock commented 2 years ago

We have all the raw data from Gamepress to determine the best raid counters. That data includes pokemon stats, all their moves, and all the stats for the moves.

We should be able to use PVP calculations for those stats to determine the best counters for Rocket battles.

dyreschlock commented 2 years ago

The Pokebattler Rocket page mentions it uses these equations to determine some things https://www.pokebattler.com/rocket

The Shadow Pokémon that Rockets use in their battle against you had their IVs changed to:

Attack IV = Floor (2/3 * Pokémon Base ATK + 25) Defense IV = 15 Stamina IV = 9 Which can be used to calculate their stats using the following formulas:

Attack = 2 (baseAttack + Attack IV) rCPM Rank Defense = 0.8 (baseDefense + 15) rCPM Rank Stamina = 1.1 (baseStamina + 9) rCPM * Rank Where Rank equals 1.0 for a Grunt, 1.05 for a Leader and 1.15 for Giovanni. With the rCPM (rocket Combat Power Multiplier) increasing with your Trainer Level.

These stats can then be used to calculate the CP of the Shadow Pokémon using the standard CP formula:

CP = Floor(0.1 Attack sqrt(Defense) * sqrt(Stamina))

dyreschlock commented 2 years ago

The calculations and data on the back-end now match Gamepress, but Gamepress is doing PVP comparisons. The enemy pokemon is not Shadow and doesn't have the correct HP.

dyreschlock commented 2 years ago

Both General and Custom pages are set up now.

Calculations still need some changes to be more accurate. In particular, they don't take charge damage into account as well.