Get the effect of the specified token.
The token from which we want the effect.
The effect of the specified token.
Get the modifier value of the specified token for this bag.
The token.
The modifier value.
Return wether or not pulling these tokens result in a success given the difference between to total skill value and the test difficulty. If several tokens are provided and none of them are autosuccess or autofails, their modifier values are added.
The tokens pulled from the bag.
The difference between the total skill value and the difficulty fo the test.
Indicate of the specified token is autofail for this bag.
The token.
true
if the token is autofail, false
otherwise.
Indicate of the specified token is autosuccess for this bag.
The token.
true
if the token is autosuccess, false
otherwise.
Constructs a new token effects map by adding or overriding effects from another token effects map.
A new token effects map.
Sets the effect for the specified token and returns a new mapping (the original mapping is untouched).
The token to set the effect for.
The effect.
The whole mapping.
Sets multiple effects at once a returns a new mapping.
An array of token/effect pairs.
A new mapping.
Generated using TypeDoc
A immutable mapping of token effects.