Class ResourceAmountBuilder
Builder utility for Kingmaker.Blueprints.BlueprintAbilityResource.Amount
Inheritance
Namespace: BlueprintCore.Blueprints.CustomConfigurators
Assembly: BlueprintCore.dll
Syntax
public class ResourceAmountBuilder
Remarks
Note that you can use IncreaseByLevel(String[], Int32), IncreaseByStat(StatType), and IncreaseByLevelStartPlusDivStep(String[], Single, Int32, Int32, Int32, Int32, Int32) simultaneously. Each will be applied, in that order.
Methods
| Improve this Doc View SourceBuild()
Declaration
public BlueprintAbilityResource.Amount Build()
Returns
| Type | Description |
|---|---|
| Kingmaker.Blueprints.BlueprintAbilityResource.Amount | A configured Kingmaker.Blueprints.BlueprintAbilityResource.Amount |
IncreaseByLevel(String[], Int32)
Increases the amount by BonusPerLevel * ClassLevels.
Declaration
public ResourceAmountBuilder IncreaseByLevel(string[] classes, int bonusPerLevel = 1)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String[] | classes | Kingmaker.Blueprints.Classes.BlueprintCharacterClass |
| System.Int32 | bonusPerLevel |
Returns
| Type | Description |
|---|---|
| ResourceAmountBuilder |
Remarks
Technically there is logic to support archetypes as well but it is unused and broken.
IncreaseByLevelStartPlusDivStep(String[], Single, Int32, Int32, Int32, Int32, Int32)
Beginning at StartingLevel, increases the amount by
StartingBonus + BonusPerStep * (Levels - StartingLevel)/LevelsPerStep or MinBonus, whichever is
larger.
Declaration
public ResourceAmountBuilder IncreaseByLevelStartPlusDivStep(string[] classes = null, float otherClassLevelsMultiplier = 0F, int startingLevel = 0, int startingBonus = 0, int levelsPerStep = 1, int bonusPerStep = 0, int minBonus = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String[] | classes | Kingmaker.Blueprints.Classes.BlueprintCharacterClass |
| System.Single | otherClassLevelsMultiplier | |
| System.Int32 | startingLevel | |
| System.Int32 | startingBonus | |
| System.Int32 | levelsPerStep | |
| System.Int32 | bonusPerStep | |
| System.Int32 | minBonus |
Returns
| Type | Description |
|---|---|
| ResourceAmountBuilder |
Remarks
Note that Levels is calculated as
ClassLevels + (CharacterLevel - ClassLevels) * OtherClassLevelsMultiplier
As with IncreaseByLevel(String[], Int32), archetype support is technically implemented but it is unused and broken.
IncreaseByStat(StatType)
Increases the amount by StatBonus.
Declaration
public ResourceAmountBuilder IncreaseByStat(StatType stat)
Parameters
| Type | Name | Description |
|---|---|---|
| Kingmaker.EntitySystem.Stats.StatType | stat |
Returns
| Type | Description |
|---|---|
| ResourceAmountBuilder |
New(Int32)
Declaration
public static ResourceAmountBuilder New(int baseValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | baseValue |
Returns
| Type | Description |
|---|---|
| ResourceAmountBuilder |