sim_dps: Simulate DPS

Description Usage Arguments Value Examples

View source: R/sim_dps.R

Description

Repeatedly simulates bosses to calculate dps. The timeframe sets a minimum an maximum time for a boss fight. Each boss simulation has a random length in between.

Usage

1
2
3
4
5
6
7
sim_dps(
  stats,
  trinkets = NULL,
  timeframe = c(60, 300),
  iter = 50000,
  seed = NULL
)

Arguments

stats

a named list with the stats of the character including int, sp, crit, hit and mp5

trinkets

which use trinkets are equipped, currently implemented: toep (Talisman of Ephemeral Power) zhc (Zandalarian Hero Charm)

timeframe

vector of minimal and maximal duration of a fight in seconds

iter

number of iterations

seed

optional seed

Value

a matrix where every row is a vector returned by sim_boss

Examples

1
2
mat <- sim_dps(list(int = 277, sp = 346, crit = 2, hit = 2), iter = 1000)
mean(mat[, 4])

cphaarmeyer/warlockr documentation built on April 1, 2021, 12:31 a.m.