Type effectiveness multiplier (Pokémon Champions)
type_effectivenessCalculate Pokémon type effectiveness: input an attacking type and up to two defending types to get the damage multiplier (0, 0.25, 0.5, 1, 2, or 4) and a brief explanation.
Instructions
Given an attacking type and 1 or 2 defending types, return the damage multiplier (0, 0.25, 0.5, 1, 2, or 4) and a short explanation, for Pokémon Champions. Derived from the type chart bundled in @smogon/calc. Answers "how effective is Fighting vs a Flying/Psychic Pokémon?".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attackingType | Yes | The move's type, e.g. "Fighting". | |
| defendingTypes | Yes | The defending Pokémon's type(s), 1 or 2 entries. |