compute_statweights: Compute Stat Weights

Description Usage Arguments Value Examples

View source: R/compute_statweights.R

Description

Simulates current dps and dps with increased stats to compute weights for these stats. The result is scaled such that spell power has weight 1.

Usage

1
2
3
4
5
6
7
compute_statweights(
  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 data frame with weights

Examples

1
2
3
4
compute_statweights(
  list(int = 277, sp = 346, crit = 2, hit = 2),
  iter = 1000
)

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