25 lines
509 B
Text
25 lines
509 B
Text
|
% Generated by roxygen2: do not edit by hand
|
||
|
% Please edit documentation in R/disadvantage_advantage.R
|
||
|
\name{advantage}
|
||
|
\alias{advantage}
|
||
|
\title{Advantage}
|
||
|
\usage{
|
||
|
advantage(x, y = NULL)
|
||
|
}
|
||
|
\arguments{
|
||
|
\item{x}{A die to roll.}
|
||
|
|
||
|
\item{y}{A die to roll. If not specified, then x is advantaged against itself.}
|
||
|
}
|
||
|
\value{
|
||
|
A die representing the maximum of both die
|
||
|
}
|
||
|
\description{
|
||
|
Advantage a die roll, which means that when both die are rolled, the result
|
||
|
is the higher number.
|
||
|
}
|
||
|
\examples{
|
||
|
advantage(d20,d20)
|
||
|
|
||
|
}
|