rank_buffs: Rank Buffs

Description Usage Arguments Examples

View source: R/rank_buffs.R

Description

Ranks buffs by choosing the best one iteratively.

Usage

1
2
3
4
5
6
7
8
rank_buffs(
  stats,
  consumables = character(),
  worldbuffs = character(),
  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

consumables

shortcuts of consumables

worldbuffs

shortcuts of worldbuffs

timeframe

vector of minimal and maximal duration of a fight in seconds

iter

number of iterations

seed

optional seed

Examples

1
2
3
stats <- with_buffs(list(int = 275, sp = 581, crit = 5, hit = 9))
rank_buffs(stats, consumables = c("gae", "eosp", "bwo"), iter = 1000)
rank_buffs(stats, worldbuffs = c("ony", "zg", "ss", "dm"), iter = 1000)

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