explode_dice: Exploding dice

Description Usage Arguments Value Examples

View source: R/roll_die.R

Description

This function mimics Death to the False Emperor, Dakka Dakka Dakka, etc. Some dice space new rolls on a 6+ (or even 5+). This adds a new roll to the results for each explosion.

Usage

1
explode_dice(x, lvl = 6)

Arguments

x

numeric vector length >= 1 of dice rolls.

lvl

numeric scalar what MINIMUM result explodes; default 6+.

Value

numeric vector of new rolls.

Examples

1
2
3
x <- roll_dice(6)
# death to the false emperor
explode_dice(x = x, lvl = 6)

psmits/mathhammr documentation built on May 14, 2019, 5:16 a.m.