View source: R/pokeFightModule.R
| calculate_damages | R Documentation | 
Function that calculates the damages of an attack on a given opponent
calculate_damages(current_attack, current_pokemon, opponent, types)
| 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. | 
As already explained, I only consider physical attacks...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.