mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-24 08:46:26 -05:00
Use fixed-point decimals and proper rounding to calculate the base power. base power = round(120 * TargetHP%) ÷ 100 TargetHP% = floor(HP * 4096 / MaxHP) / 4096 * 100 |
||
|---|---|---|
| .. | ||
| abilities.js | ||
| aliases.js | ||
| formats-data.js | ||
| formats.js | ||
| items.js | ||
| learnsets-g6.js | ||
| learnsets.js | ||
| moves.js | ||
| pokedex.js | ||
| scripts.js | ||
| statuses.js | ||
| typechart.js | ||