CriticalFailureModifier

CriticalFailureModifier ⇐ ComparisonModifier

A CriticalFailureModifier modifier flags values that match a comparison.

Unlike most other modifiers, it doesn't affect the roll value, it simply "flags" matching rolls.

Kind: global class
Extends: ComparisonModifier
See: CriticalSuccessModifier for the opposite of this modifier

new CriticalFailureModifier([comparePoint])

Create a CriticalFailureModifier instance.

Throws:

  • TypeError comparePoint must be a ComparePoint object
ParamTypeDescription
[comparePoint]ComparePointThe comparison object

criticalFailureModifier.order : number

The default modifier execution order.

Kind: instance property of CriticalFailureModifier

criticalFailureModifier.name ⇒ string

The name of the modifier.

Kind: instance property of CriticalFailureModifier
Returns: string - 'critical-failure'

criticalFailureModifier.notation ⇒ string

The modifier's notation.

Kind: instance property of CriticalFailureModifier

criticalFailureModifier.defaultComparePoint(_context) ⇒ array

The default compare point definition

Kind: instance method of CriticalFailureModifier

ParamTypeDescription
_contextStandardDice | RollGroupThe object that the modifier is attached to

criticalFailureModifier.run(results, _context) ⇒ RollResults

Run the modifier on the results.

Kind: instance method of CriticalFailureModifier
Returns: RollResults - The modified results

ParamTypeDescription
resultsRollResultsThe results to run the modifier against
_contextStandardDice | RollGroupThe object that the modifier is attached to