Class ContextDuration
Helper class for creating Kingmaker.
Inheritance
System.Object
ContextDuration
Namespace: BlueprintCore.Utils.Types
Assembly: BlueprintCore.dll
Syntax
public static class ContextDuration
Methods
| Improve this Doc View SourceFixed(Int32, DurationRate, Nullable<Boolean>)
Constant duration: (value) (rate). e.g. 3 rounds
Declaration
public static ContextDurationValue Fixed(int value, DurationRate rate = DurationRate.Rounds, bool? isExtendable = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | |
Kingmaker. |
rate | |
System. |
isExtendable | Determines if the duration is affected by Extend Metamagic. |
Returns
Type | Description |
---|---|
Kingmaker. |
FixedDice(DiceType, Int32, Int32, DurationRate, Nullable<Boolean>)
Fixed dice roll duration: (diceCount)(diceType) + (bonus) (rate). e.g. 2d6 + 3 rounds
Declaration
public static ContextDurationValue FixedDice(DiceType diceType, int diceCount = 1, int bonus = 0, DurationRate rate = DurationRate.Rounds, bool? isExtendable = null)
Parameters
Type | Name | Description |
---|---|---|
Kingmaker. |
diceType | |
System. |
diceCount | |
System. |
bonus | |
Kingmaker. |
rate | |
System. |
isExtendable | Determines if the duration is affected by Extend Metamagic. |
Returns
Type | Description |
---|---|
Kingmaker. |
Variable(ContextValue, DurationRate, Nullable<Boolean>)
Context dependent duration: (value) (rate). e.g. ContextValues.Rank() rounds
Declaration
public static ContextDurationValue Variable(ContextValue value, DurationRate rate = DurationRate.Rounds, bool? isExtendable = null)
Parameters
Type | Name | Description |
---|---|---|
Kingmaker. |
value | |
Kingmaker. |
rate | |
System. |
isExtendable | Determines if the duration is affected by Extend Metamagic. |
Returns
Type | Description |
---|---|
Kingmaker. |
VariableDice(DiceType, ContextValue, ContextValue, DurationRate, Nullable<Boolean>)
Context dependent dice roll: (diceCount)(diceType) + (bonus). e.g. ContextValues.Rank()d6 + 2
Declaration
public static ContextDurationValue VariableDice(DiceType diceType, ContextValue diceCount, ContextValue bonus = null, DurationRate rate = DurationRate.Rounds, bool? isExtendable = null)
Parameters
Type | Name | Description |
---|---|---|
Kingmaker. |
diceType | |
Kingmaker. |
diceCount | |
Kingmaker. |
bonus | |
Kingmaker. |
rate | |
System. |
isExtendable | Determines if the duration is affected by Extend Metamagic. |
Returns
Type | Description |
---|---|
Kingmaker. |