Skip to content
Shawn edited this page May 30, 2024 · 1 revision

Compute STAB Multiplier for an Attack (stab)

This function computes the Same Type Attack Bonus (STAB) multiplier for an attack. It is to be used with the effectiveness and effectivenessPokemon functions instead of passing a parameter.

Paramaters

  • effectiveness Numeric value representing the effectiveness of an attack.
  • stab_mult Numeric value representing the STAB multiplier. Default is stab_multiplyer$Standard.
  • return Numeric value representing the effectiveness of the attack with the STAB multiplier applied.

Usage

stab(effectiveness, stab_mult = stab_multiplyer$Standard)

Examples

effectivenessPokemon("Fire", "Zekrom")|>
  stab()
Clone this wiki locally