Extends
Members
Methods
# count(n) → {number}
Counts the number of times a single value appears.
Parameters:
Name | Type | Description |
---|---|---|
n |
number
|
The single value to count |
- Inherited From:
number
# getResultCSS(result) → {Array.<string>}
Gets the CSS classes that should be used to display each rolled result.
Parameters:
Name | Type | Description |
---|---|---|
result |
YearZeroDieTermResult
|
The rolled result |
- Inherited From:
- See:
-
- (FoundryVTT) DiceTerm.getResultCSS
The desired classes
Array.<string>
# getTooltipData() → {Object}
Renders the tooltip HTML for a Roll instance.
- Inherited From:
- See:
-
- (FoundryVTT) DiceTerm.getTooltipData
The data object used to render the default tooltip template for this DiceTerm
Object
# async roll(optionsopt) → {Promise.<YearZeroDieTermResult>}
Rolls the DiceTerm by mapping a random uniform draw against the faces of the dice term.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options |
Object
|
<optional> |
{} | Options which modify how a random result is produced |
minimize |
boolean
|
<optional> |
false | Minimize the result, obtaining the smallest possible value |
maximize |
boolean
|
<optional> |
false | Maximize the result, obtaining the smallest possible value |
- Inherited From:
- See:
-
- (Foundry) DiceTerm.roll
The produced result
Promise.<YearZeroDieTermResult>
# setpush(modifier)
Roll modifier method that sets the max number of pushes.
Parameters:
Name | Type | Description |
---|---|---|
modifier |
string
|
- Inherited From: