< Dice | RollerConfig
RollerConfig.NormalSidesOnly Property
From DiceRoller Documentation
Gets or sets whether dice expressions are limited to rolling dice with a "normal" number of sides, or if they can roll dice of any number of sides.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
public bool NormalSidesOnly { get; set; }
Property Value
Type: System.Boolean
If true, only standard dice sizes (d2, d3, d4, d6, d8, d10, d12, d20, d100, d1,000, d10,000) may be rolled. If false, any die size from 1 to RollerConfig.MaxSides, inclusive, can be rolled. Even if true, RollerConfig.MaxSides is still in effect, so lowering it from the default may make certain dice unable to be rolled. Attempting to roll a different die size while this is true results in a DiceException being thrown with DiceErrorCode.WrongSides.
Remarks
The default value for NormalSidesOnly is false, meaning any die size can be rolled (up to RollerConfig.MaxSides).