Description Usage Arguments Value Examples

Some effects cause some dice to be re-rolled e.g. SM Captain. This function replaces a previous roll with a new value.

1 | ```
reroll_dice(x, lvl = 1)
``` |

`x` |
numeric vector length >= 1. |

`lvl` |
numeric scalar what MAXIMUM result rerolls; default re-roll 1s. |

numeric vector of length == x.

1 2 3 4 | ```
x <- roll_dice(6)
# captain aura on to-hit
rr <- roll_dice(6)
reroll_dice(x = rr, lvl = 1)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.