Description Usage Arguments Value Examples
View source: R/compare_equip.R
Similar to compare_items
but different interface.
See is_equip
for more details.
1 2 3 4 5 6 7 8 | compare_equip(
stats,
equip,
changes,
timeframe = c(60, 300),
iter = 50000,
seed = NULL
)
|
stats |
a named list with the stats of the character including int, sp, crit, hit and mp5 |
equip |
equipment list |
changes |
named list with the item changes |
timeframe |
vector of minimal and maximal duration of a fight in seconds |
iter |
number of iterations |
seed |
optional seed |
a data frame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | my_stats <- list(
int = 213 + 31 + 12,
sp = 360 + 119 + 40,
crit = 4,
hit = 1
)
my_equip <- list(
head = list(int = 16, sp = 32),
neck = list(int = 9, hit = 1),
shoulders = list(sp = 26),
back = list(sp = 18),
chest = list(sp = 46),
wrist = list(int = 11, sp = 13),
hands = list(sp = 33),
waist = list(int = 8, sp = 25, crit = 1),
legs = list(int = 16, sp = 39),
feet = list(int = 9, sp = 27),
finger1 = list(int = 7, sp = 18),
finger2 = list(int = 6, sp = 33),
trinket1 = list(crit = 2),
trinket2 = list(sp = 29),
weapon = list(int = 12, sp = 60, crit = 1),
wand = list(int = 4, sp = 11)
)
my_changes <- list(
"New Weapon" = list(weapon = list(int = 29, sp = 84, crit = 2)),
"New Rings" = list(
finger1 = list(int = 10, sp = 11, hit = 1),
finger2 = list(int = 13, sp = 6, hit = 2, mp5 = 4)
),
"New Trinket" = list(trinket1 = "zhc")
)
compare_equip(my_stats, my_equip, my_changes, iter = 1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.