fight_History: Function that generates a timelineItem for each attack the...

View source: R/pokeFightModule.R

fight_HistoryR Documentation

Function that generates a timelineItem for each attack the pokemon does.

Description

Function that generates a timelineItem for each attack the pokemon does.

Usage

fight_History(attacking, opponent, current_attack, damages)

Arguments

attacking

Id of the randomly generated pokemon who is attacking.

opponent

Opponent type. Useful for effectiveness calculations.

current_attack

The currently selected attack.

damages

Result of calculate_damages witht the current_attack. TRUE in this case.


DivadNojnarg/shinyMons documentation built on Feb. 1, 2025, 3:24 p.m.