calculate_move_damage
Compute one-hit Pokémon GO move damage against a defender, showing STAB, type effectiveness, weather, Mega/Primal boost, friendship, and dodge multipliers.
Instructions
Damage for one hit of move (by attacker) against defender, plus
the full multiplier breakdown (STAB, type effectiveness, weather,
Mega/Primal raid boost, friendship, dodge). Not a battle simulator -
this is a single deterministic hit, not a full fight. weather is an
upstream weather condition id (e.g. "partlyCloudy", "rainy") or
omitted for no weather boost. mega_boost_types lists the type(s) of
any Mega/Primal currently active in the raid, or omit for none.
friendship_level is 0 (Not Friends) through 5 (Best Friend).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| move | Yes | ||
| dodging | No | ||
| weather | No | ||
| attacker | Yes | ||
| defender | Yes | ||
| attacker_level | Yes | ||
| defender_level | Yes | ||
| attacker_shadow | No | ||
| defender_shadow | No | ||
| friendship_level | No | ||
| mega_boost_types | No | ||
| attacker_attack_iv | Yes | ||
| defender_defense_iv | Yes |