calculate_damages: Function that calculates the damages of an attack on a given...

Description Usage Arguments Note

Description

Function that calculates the damages of an attack on a given opponent

Usage

1
calculate_damages(current_attack, current_pokemon, opponent, types)

Arguments

current_attack

The currently selected attack.

current_pokemon

Id of the randomly generated pokemon who is attacking.

opponent

Opponent type. Useful for effectiveness calculations.

types

Object containing all pokemons types strenght and weaknesses.

Note

As already explained, I only consider physical attacks...


DivadNojnarg/shinyMons documentation built on June 12, 2019, 8:43 a.m.