compare_items: Compare Items

Description Usage Arguments Value Examples

View source: R/compare_items.R

Description

Simulates dps with current stats and with new stats to compare them.

Usage

1
compare_items(stats, items, 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

items

list where each element indicates the stat changes by an item

timeframe

vector of minimal and maximal duration of a fight in seconds

iter

number of iterations

seed

optional seed

Value

a data frame

Examples

1
2
3
4
5
6
7
8
compare_items(
  list(int = 277, sp = 346, crit = 2, hit = 2),
  items = list(
    new_item1 = list(crit = -1, hit = 1),
    new_item2 = list(int = 5, sp = 3)
  ),
  iter = 1000
)

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