Class ContextDuration
Helper class for creating Kingmaker.UnitLogic.Mechanics.ContextDurationValue objects.
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.Int32 | value | |
Kingmaker.UnitLogic.Mechanics.DurationRate | rate | |
System.Nullable<System.Boolean> | isExtendable | Determines if the duration is affected by Extend Metamagic. |
Returns
Type | Description |
---|---|
Kingmaker.UnitLogic.Mechanics.ContextDurationValue |
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.RuleSystem.DiceType | diceType | |
System.Int32 | diceCount | |
System.Int32 | bonus | |
Kingmaker.UnitLogic.Mechanics.DurationRate | rate | |
System.Nullable<System.Boolean> | isExtendable | Determines if the duration is affected by Extend Metamagic. |
Returns
Type | Description |
---|---|
Kingmaker.UnitLogic.Mechanics.ContextDurationValue |
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.UnitLogic.Mechanics.ContextValue | value | |
Kingmaker.UnitLogic.Mechanics.DurationRate | rate | |
System.Nullable<System.Boolean> | isExtendable | Determines if the duration is affected by Extend Metamagic. |
Returns
Type | Description |
---|---|
Kingmaker.UnitLogic.Mechanics.ContextDurationValue |
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.RuleSystem.DiceType | diceType | |
Kingmaker.UnitLogic.Mechanics.ContextValue | diceCount | |
Kingmaker.UnitLogic.Mechanics.ContextValue | bonus | |
Kingmaker.UnitLogic.Mechanics.DurationRate | rate | |
System.Nullable<System.Boolean> | isExtendable | Determines if the duration is affected by Extend Metamagic. |
Returns
Type | Description |
---|---|
Kingmaker.UnitLogic.Mechanics.ContextDurationValue |