Class BaseArmorEnchantmentConfigurator<T, TBuilder>
Implements common fields and components for blueprints inheriting from Kingmaker.Blueprints.Items.Ecnchantments.BlueprintArmorEnchantment.
Inheritance
Inherited Members
Namespace: BlueprintCore.Blueprints.Configurators.Items.Ecnchantments
Assembly: BlueprintCore.dll
Syntax
public abstract class BaseArmorEnchantmentConfigurator<T, TBuilder> : BaseEquipmentEnchantmentConfigurator<T, TBuilder> where T : BlueprintArmorEnchantment where TBuilder : BaseArmorEnchantmentConfigurator<T, TBuilder>
Type Parameters
Name | Description |
---|---|
T | |
TBuilder |
Remarks
Each supported blueprint type has a corresponding Configurator
class to create and modify blueprints of
that type, e.g. FeatureConfigurator supports BlueprintFeature
. Configurators exist for all
blueprint types inheriting from Kingmaker.Blueprints.BlueprintScriptableObject, excluding any that are not used in the
base game.
Creating a Blueprint
Use New(string, string)
to create a blueprint:
FeatureConfigurator.New(MyBlueprintName, MyBlueprintGuid)
Once New()
is called the blueprint is added to the game library and can be referenced.
Using the Configurator
New()
returns a configurator with methods to set or modify blueprint fields and add or modify
Kingmaker.Blueprints.BlueprintComponent:
FeatureConfigurator.New(MyBlueprintName, MyBlueprintGuid).AddToGroups(FeatureGroup.Feat).AddPrerequisiteAlignment(AlignmentMaskType.LawfulGood).Configure();
Each method call returns the configurator allowing you to chain calls. Nothing is modified on the blueprint until
Configure()
is called, at which point the changes are applied and validated. Potential problems with the
blueprint are logged as warnings.
Modifying an Existing Blueprint
Use For(Blueprint)
to modify existing blueprints:
CharacterClassConfigurator.For(WizardClassGuid)
Usage is otherwise identical to creating a new blueprint.
For more information see Using BlueprintCore.
Constructors
| Improve this Doc View SourceBaseArmorEnchantmentConfigurator(Blueprint<BlueprintReference<T>>)
Declaration
protected BaseArmorEnchantmentConfigurator(Blueprint<BlueprintReference<T>> blueprint)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintReference<T>> | blueprint |
Methods
| Improve this Doc View SourceAddAdvanceArmorStats(Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Action<BlueprintComponent, BlueprintComponent>, ComponentMerge)
Adds Kingmaker.Designers.Mechanics.Facts.AdvanceArmorStats
Declaration
public TBuilder AddAdvanceArmorStats(int? arcaneSpellFailureShift = null, int? armorCheckPenaltyShift = null, int? maxDexBonusShift = null, Action<BlueprintComponent, BlueprintComponent> merge = null, ComponentMerge mergeBehavior = ComponentMerge.Fail)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | arcaneSpellFailureShift | |
System.Nullable<System.Int32> | armorCheckPenaltyShift | |
System.Nullable<System.Int32> | maxDexBonusShift | |
System.Action<Kingmaker.Blueprints.BlueprintComponent, Kingmaker.Blueprints.BlueprintComponent> | merge | If mergeBehavior is ComponentMerge.Merge and the component already exists, this expression is called to merge the components. |
ComponentMerge | mergeBehavior | Handling if the component already exists since the component is unique. Defaults to ComponentMerge.Fail. |
Returns
Type | Description |
---|---|
TBuilder |
Remarks
- AdamantineArmorHeavyEnchant933456ff83c454146a8bf434e39b1f93
- MithralArmorEnchant7b95a819181574a4799d93939aa99aff
- TrailblazersArmorEnchantment18a2cf7f9c3aac84681ee728197c6a2a
AddArmorEnhancementBonus(Nullable<Int32>, Action<BlueprintComponent, BlueprintComponent>, ComponentMerge)
Adds Kingmaker.Blueprints.Items.Ecnchantments.ArmorEnhancementBonus
Declaration
public TBuilder AddArmorEnhancementBonus(int? enhancementValue = null, Action<BlueprintComponent, BlueprintComponent> merge = null, ComponentMerge mergeBehavior = ComponentMerge.Fail)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | enhancementValue | |
System.Action<Kingmaker.Blueprints.BlueprintComponent, Kingmaker.Blueprints.BlueprintComponent> | merge | If mergeBehavior is ComponentMerge.Merge and the component already exists, this expression is called to merge the components. |
ComponentMerge | mergeBehavior | Handling if the component already exists since the component is unique. Defaults to ComponentMerge.Fail. |
Returns
Type | Description |
---|---|
TBuilder |
Remarks
- ArmorEnhancementBonus1a9ea95c5e02f9b7468447bc1010fe152
- HeavyShieldEnhancementRusty5fbb3964ceb9492da80806de8205a491
- ShieldEnhancementBonus670c26c66adb96d74baec38fc8d20c139
AddPolymorphEnchantment(Action<BlueprintComponent, BlueprintComponent>, ComponentMerge)
Adds Kingmaker.Designers.Mechanics.EquipmentEnchants.PolymorphEnchantment
Declaration
public TBuilder AddPolymorphEnchantment(Action<BlueprintComponent, BlueprintComponent> merge = null, ComponentMerge mergeBehavior = ComponentMerge.Fail)
Parameters
Type | Name | Description |
---|---|---|
System.Action<Kingmaker.Blueprints.BlueprintComponent, Kingmaker.Blueprints.BlueprintComponent> | merge | If mergeBehavior is ComponentMerge.Merge and the component already exists, this expression is called to merge the components. |
ComponentMerge | mergeBehavior | Handling if the component already exists since the component is unique. Defaults to ComponentMerge.Fail. |
Returns
Type | Description |
---|---|
TBuilder |
Remarks
- AnimalisticPerseveranceEnchantmentc7090597a05e40409426d2779f6f3c4b
CopyFrom(Blueprint<BlueprintReference<BlueprintArmorEnchantment>>, Predicate<BlueprintComponent>)
Copies fields and components of the specified types from the blueprint.
Declaration
public TBuilder CopyFrom(Blueprint<BlueprintReference<BlueprintArmorEnchantment>> blueprint, Predicate<BlueprintComponent> componentMatcher)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintReference<Kingmaker.Blueprints.Items.Ecnchantments.BlueprintArmorEnchantment>> | blueprint | |
System.Predicate<Kingmaker.Blueprints.BlueprintComponent> | componentMatcher | Any components in |
Returns
Type | Description |
---|---|
TBuilder |
Remarks
NOT A DEEP COPY. This means objects copied are shared between blueprints. Changes to copied objects affect both blueprints.
Recommended when you need to create a nearly identical ability but change some parts such as a
ContextRankConfig
.
// Copy the Undead Bloodline's Incorporeal Form ability, replacing the duration w/ Character Level rounds
AbilityConfigurator.New(NewIncorporealForm, Guids.NewIncorporealForm)
.CopyFrom(
AbilityRefs.BloodlineUndeadIncorporealFormAbility,
typeof(AbilityEffectRunAction),
typeof(AbilityResourceLogic),
typeof(SpellComponent))
.AddContextRankConfig(ContextRankConfigs.CharacterLevel())
.Configure();
CopyFrom(Blueprint<BlueprintReference<BlueprintArmorEnchantment>>, Type[])
Copies fields and components of the specified types from the blueprint.
Declaration
public TBuilder CopyFrom(Blueprint<BlueprintReference<BlueprintArmorEnchantment>> blueprint, params Type[] componentTypes)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintReference<Kingmaker.Blueprints.Items.Ecnchantments.BlueprintArmorEnchantment>> | blueprint | |
System.Type[] | componentTypes | Any components in |
Returns
Type | Description |
---|---|
TBuilder |
Remarks
NOT A DEEP COPY. This means objects copied are shared between blueprints. Changes to copied objects affect both blueprints.
Recommended when you need to create a nearly identical ability but change some parts such as a
ContextRankConfig
.
// Copy the Undead Bloodline's Incorporeal Form ability, replacing the duration w/ Character Level rounds
AbilityConfigurator.New(NewIncorporealForm, Guids.NewIncorporealForm)
.CopyFrom(
AbilityRefs.BloodlineUndeadIncorporealFormAbility,
typeof(AbilityEffectRunAction),
typeof(AbilityResourceLogic),
typeof(SpellComponent))
.AddContextRankConfig(ContextRankConfigs.CharacterLevel())
.Configure();