Class Modifier
Represents a modifier from a single source, such as an ability or magical bonus or penalty.
Inheritance
System.Object
Modifier
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: osrlib.Core
Assembly: osrlib.Core.dll
Syntax
public class Modifier
Remarks
A Modifier is used to adjust another value. For example, a Strength ability score of 18 gives +3 Modifier on to-hit and damage rolls.
Properties
| Improve this Doc View SourceModifierSource
A reference to the source of the modifier.
Declaration
public object ModifierSource { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
ModifierValue
Gets or sets the amount of the modifier. This value can positive (bonus, enchantment) or negative (penalty, curse).
Declaration
public int ModifierValue { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |