Class BaseItemConfigurator<T, TBuilder>
Implements common fields and components for blueprints inheriting from Kingmaker.Blueprints.Items.BlueprintItem.
Inheritance
Inherited Members
Namespace: BlueprintCore.Blueprints.Configurators.Items
Assembly: BlueprintCore.dll
Syntax
public abstract class BaseItemConfigurator<T, TBuilder> : BaseFactConfigurator<T, TBuilder> where T : BlueprintItem where TBuilder : BaseItemConfigurator<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 SourceBaseItemConfigurator(Blueprint<BlueprintReference<T>>)
Declaration
protected BaseItemConfigurator(Blueprint<BlueprintReference<T>> blueprint)
Parameters
| Type | Name | Description |
|---|---|---|
| Blueprint<Kingmaker.Blueprints.BlueprintReference<T>> | blueprint |
Methods
| Improve this Doc View SourceAddBuildPointsReplacement(Nullable<Int32>, Action<BlueprintComponent, BlueprintComponent>, ComponentMerge)
Adds Kingmaker.Blueprints.Items.Components.BuildPointsReplacement
Declaration
public TBuilder AddBuildPointsReplacement(int? cost = null, Action<BlueprintComponent, BlueprintComponent> merge = null, ComponentMerge mergeBehavior = ComponentMerge.Fail)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<System.Int32> | cost | |
| 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
- BPCoins995a5ff780c5fc541a0969e309c4de36
AddConsumableEventBonusReplacement(Nullable<Int32>, Action<BlueprintComponent, BlueprintComponent>, ComponentMerge)
Adds Kingmaker.Blueprints.Items.Components.ConsumableEventBonusReplacement
Declaration
public TBuilder AddConsumableEventBonusReplacement(int? cost = null, Action<BlueprintComponent, BlueprintComponent> merge = null, ComponentMerge mergeBehavior = ComponentMerge.Fail)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<System.Int32> | cost | |
| 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
- ConsumableEventBonusItem1ab90b3b5d7cd1045b86ae5b9410af70
AddCopyRecipe(Action<BlueprintComponent, BlueprintComponent>, ComponentMerge, Blueprint<BlueprintCookingRecipeReference>)
Adds Kingmaker.Blueprints.Items.Components.CopyRecipe
Declaration
public TBuilder AddCopyRecipe(Action<BlueprintComponent, BlueprintComponent> merge = null, ComponentMerge mergeBehavior = ComponentMerge.Fail, Blueprint<BlueprintCookingRecipeReference> recipe = null)
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. |
| Blueprint<Kingmaker.Blueprints.BlueprintCookingRecipeReference> | recipe | Blueprint of type BlueprintCookingRecipe. You can pass in the blueprint using:
|
Returns
| Type | Description |
|---|---|
| TBuilder |
Remarks
- AcornPie_item83864a3611c89f047b4242f139872fff
- GlowingCroissant_itemadba05c4956e8844592f49acaaa4d4ea
- SpicyPastry_itemb0a3bb682cfe6054bac65d0f4d68d3d0
AddCopyScroll(Blueprint<BlueprintAbilityReference>, Action<BlueprintComponent, BlueprintComponent>, ComponentMerge)
Adds Kingmaker.Blueprints.Items.Components.CopyScroll
Declaration
public TBuilder AddCopyScroll(Blueprint<BlueprintAbilityReference> customSpell = null, Action<BlueprintComponent, BlueprintComponent> merge = null, ComponentMerge mergeBehavior = ComponentMerge.Fail)
Parameters
| Type | Name | Description |
|---|---|---|
| Blueprint<Kingmaker.Blueprints.BlueprintAbilityReference> | customSpell | Blueprint of type BlueprintAbility. You can pass in the blueprint using:
|
| 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
- ScrollHealMasse19e85bfe282a1145a6075567a71970f
- ScrollOfInflictSeriousWoundsMass2d9149f08a6ff4149a76b7a1bb560c6c
- ScrollOfWrackingRaye3af1f25d3d4fcf439f508377c7493cd
AddCustomItemAbilityActionType(Nullable<UnitCommand.CommandType>, Action<BlueprintComponent, BlueprintComponent>, ComponentMerge)
Adds Kingmaker.Blueprints.Items.Components.CustomItemAbilityActionType
Declaration
public TBuilder AddCustomItemAbilityActionType(UnitCommand.CommandType? actionType = null, Action<BlueprintComponent, BlueprintComponent> merge = null, ComponentMerge mergeBehavior = ComponentMerge.Fail)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<Kingmaker.UnitLogic.Commands.Base.UnitCommand.CommandType> | actionType | |
| 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
- BrokenPhylacterySoulRingItem29c12c43b02e5ad41895388d47bf4efb
- ColorlessRemainsGoggles_MadnessItem5b2fa590883042948dcebfa162025ead
AddIgnoreResistanceForDamageFromEnchantment(Action<BlueprintComponent, BlueprintComponent>, ComponentMerge, Nullable<IgnoreResistanceForDamageFromEnchantment.IgnoreType>)
Adds Kingmaker.Designers.Mechanics.EquipmentEnchants.IgnoreResistanceForDamageFromEnchantment
Declaration
public TBuilder AddIgnoreResistanceForDamageFromEnchantment(Action<BlueprintComponent, BlueprintComponent> merge = null, ComponentMerge mergeBehavior = ComponentMerge.Fail, IgnoreResistanceForDamageFromEnchantment.IgnoreType? type = null)
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. |
| System.Nullable<Kingmaker.Designers.Mechanics.EquipmentEnchants.IgnoreResistanceForDamageFromEnchantment.IgnoreType> | type |
Returns
| Type | Description |
|---|---|
| TBuilder |
Remarks
- ElderBrass0a8f3559cfcc4d38961bd9658d026cc8
- ElderFrostc9c2580b9b6c43e992acae157615deb5
- ElderShockingBursta30a16ee048e4d1fb186c5cf4a0984b0
AddItemDialog(ConditionsBuilder, Blueprint<BlueprintDialogReference>, LocalString, Action<BlueprintComponent, BlueprintComponent>, ComponentMerge)
Adds Kingmaker.Blueprints.Items.Components.ItemDialog
Declaration
public TBuilder AddItemDialog(ConditionsBuilder conditions = null, Blueprint<BlueprintDialogReference> dialogReference = null, LocalString itemName = null, Action<BlueprintComponent, BlueprintComponent> merge = null, ComponentMerge mergeBehavior = ComponentMerge.Fail)
Parameters
| Type | Name | Description |
|---|---|---|
| ConditionsBuilder | conditions | |
| Blueprint<Kingmaker.Blueprints.BlueprintDialogReference> | dialogReference | Blueprint of type BlueprintDialog. You can pass in the blueprint using:
|
| LocalString | itemName | You can pass in the string using a LocalizedString or the Key to a LocalizedString. |
| 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
- FinneanBaseItem95c126deb99ba054aa5b84710520c035
- LexiconHalf2b2e062dac1c7a7d45a21280601f2075f
- ZachariusFallenWandItem622bb73ea55945b6a3d082e73166cc5c
AddItemDlcRestriction(Blueprint<BlueprintItemReference>, Blueprint<BlueprintDlcRewardReference>, Nullable<Boolean>, Action<BlueprintComponent, BlueprintComponent>, ComponentMerge)
Adds Kingmaker.Blueprints.Items.Components.ItemDlcRestriction
Declaration
public TBuilder AddItemDlcRestriction(Blueprint<BlueprintItemReference> changeTo = null, Blueprint<BlueprintDlcRewardReference> dlcReward = null, bool? hideInVendors = null, Action<BlueprintComponent, BlueprintComponent> merge = null, ComponentMerge mergeBehavior = ComponentMerge.Fail)
Parameters
| Type | Name | Description |
|---|---|---|
| Blueprint<Kingmaker.Blueprints.BlueprintItemReference> | changeTo | Blueprint of type BlueprintItem. You can pass in the blueprint using:
|
| Blueprint<Kingmaker.Blueprints.BlueprintDlcRewardReference> | dlcReward | Blueprint of type BlueprintDlcReward. You can pass in the blueprint using:
|
| System.Nullable<System.Boolean> | hideInVendors | |
| 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
- DashingCavaliersGlovesItem176da707c9c9d764e972a9da8b444ff3
- Owlcat_Item6ea6d3b50bfa24e46a710beafbd95cd0
- SwarmbaneClaspItema4dda39fab2d4e99884a71ecdc8f77ad
AddItemPolymorph(Blueprint<BlueprintUnlockableFlagReference>, List<Blueprint<BlueprintItemReference>>)
Adds Kingmaker.Blueprints.Items.Components.ItemPolymorph
Declaration
public TBuilder AddItemPolymorph(Blueprint<BlueprintUnlockableFlagReference> flagToCheck = null, List<Blueprint<BlueprintItemReference>> polymorphItems = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Blueprint<Kingmaker.Blueprints.BlueprintUnlockableFlagReference> | flagToCheck | Blueprint of type BlueprintUnlockableFlag. You can pass in the blueprint using:
|
| System.Collections.Generic.List<Blueprint<Kingmaker.Blueprints.BlueprintItemReference>> | polymorphItems | Blueprint of type BlueprintItem. You can pass in the blueprint using:
|
Returns
| Type | Description |
|---|---|
| TBuilder |
Remarks
- FinneanBaseItem95c126deb99ba054aa5b84710520c035
- TestFinneanItem508d135c08de4661ba32b27e424e6a4c
AddItemShowInfoCallback(ActionsBuilder, Action<BlueprintComponent, BlueprintComponent>, ComponentMerge, Nullable<Boolean>)
Declaration
public TBuilder AddItemShowInfoCallback(ActionsBuilder action = null, Action<BlueprintComponent, BlueprintComponent> merge = null, ComponentMerge mergeBehavior = ComponentMerge.Fail, bool? once = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ActionsBuilder | action | |
| 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. |
| System.Nullable<System.Boolean> | once |
Returns
| Type | Description |
|---|---|
| TBuilder |
Remarks
- AboutIzyagnafa1f67444ec844508ea2eb6549581d5d
- KenabresWardstone6e09b855929d419893eb2fbaeec80e51
- ZoeyPendantTeleport9a90929e2db1be448b495509170a4251
AddMoneyReplacement(Nullable<Int64>, Action<BlueprintComponent, BlueprintComponent>, ComponentMerge)
Adds Kingmaker.Blueprints.Items.Components.MoneyReplacement
Declaration
public TBuilder AddMoneyReplacement(long? cost = null, Action<BlueprintComponent, BlueprintComponent> merge = null, ComponentMerge mergeBehavior = ComponentMerge.Fail)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<System.Int64> | cost | |
| 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
- DLC3_GnomeCashItem97ea0b53288d46b0aed65f0e3ac3037e
- DLC3_StartingCash620107fe863540b7907df92b1bc8d1c8
- GoldCoinsf2bc0997c24e573448c6c91d2be88afa
AddToTrashLootTypes(TrashLootType[])
Adds to the contents of Kingmaker.Blueprints.Items.BlueprintItem.TrashLootTypes
Declaration
public TBuilder AddToTrashLootTypes(params TrashLootType[] trashLootTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| Kingmaker.Enums.TrashLootType[] | trashLootTypes |
Returns
| Type | Description |
|---|---|
| TBuilder |
AddWeaponTypeAttackEnchant(Nullable<Int32>, Nullable<ModifierDescriptor>, Blueprint<BlueprintWeaponTypeReference>)
Adds Kingmaker.Designers.Mechanics.Facts.WeaponTypeAttackEnchant
Declaration
public TBuilder AddWeaponTypeAttackEnchant(int? bonus = null, ModifierDescriptor? descriptor = null, Blueprint<BlueprintWeaponTypeReference> type = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<System.Int32> | bonus | |
| System.Nullable<Kingmaker.Enums.ModifierDescriptor> | descriptor | |
| Blueprint<Kingmaker.Blueprints.BlueprintWeaponTypeReference> | type | Blueprint of type BlueprintWeaponType. You can pass in the blueprint using:
|
Returns
| Type | Description |
|---|---|
| TBuilder |
Remarks
ComponentName: Weapon Type Attack Enchant
- BombAttack222cef8e691a75674d8bc33ea986ea4fa
- DLC2ShortspearEnchantment07de6c83aa2c423f897b6904ba270216
- TouchEnchant22431f5f8d2ffe854784429b989d1e8a3
ClearTrashLootTypes()
Removes all elements from Kingmaker.Blueprints.Items.BlueprintItem.TrashLootTypes
Declaration
public TBuilder ClearTrashLootTypes()
Returns
| Type | Description |
|---|---|
| TBuilder |
CopyFrom(Blueprint<BlueprintReference<BlueprintItem>>, Predicate<BlueprintComponent>)
Copies fields and components of the specified types from the blueprint.
Declaration
public TBuilder CopyFrom(Blueprint<BlueprintReference<BlueprintItem>> blueprint, Predicate<BlueprintComponent> componentMatcher)
Parameters
| Type | Name | Description |
|---|---|---|
| Blueprint<Kingmaker.Blueprints.BlueprintReference<Kingmaker.Blueprints.Items.BlueprintItem>> | 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<BlueprintItem>>, Type[])
Copies fields and components of the specified types from the blueprint.
Declaration
public TBuilder CopyFrom(Blueprint<BlueprintReference<BlueprintItem>> blueprint, params Type[] componentTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| Blueprint<Kingmaker.Blueprints.BlueprintReference<Kingmaker.Blueprints.Items.BlueprintItem>> | 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();
ModifyDescriptionText(Action<LocalizedString>)
Modifies Kingmaker.Blueprints.Items.BlueprintItem.m_DescriptionText by invoking the provided action.
Declaration
public TBuilder ModifyDescriptionText(Action<LocalizedString> action)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<Kingmaker.Localization.LocalizedString> | action |
Returns
| Type | Description |
|---|---|
| TBuilder |
ModifyDisplayNameText(Action<LocalizedString>)
Modifies Kingmaker.Blueprints.Items.BlueprintItem.m_DisplayNameText by invoking the provided action.
Declaration
public TBuilder ModifyDisplayNameText(Action<LocalizedString> action)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<Kingmaker.Localization.LocalizedString> | action |
Returns
| Type | Description |
|---|---|
| TBuilder |
ModifyFlavorText(Action<LocalizedString>)
Modifies Kingmaker.Blueprints.Items.BlueprintItem.m_FlavorText by invoking the provided action.
Declaration
public TBuilder ModifyFlavorText(Action<LocalizedString> action)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<Kingmaker.Localization.LocalizedString> | action |
Returns
| Type | Description |
|---|---|
| TBuilder |
ModifyIcon(Action<Sprite>)
Modifies Kingmaker.Blueprints.Items.BlueprintItem.m_Icon by invoking the provided action.
Declaration
public TBuilder ModifyIcon(Action<Sprite> action)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<UnityEngine.Sprite> | action |
Returns
| Type | Description |
|---|---|
| TBuilder |
ModifyInventoryPutSound(Action<String>)
Modifies Kingmaker.Blueprints.Items.BlueprintItem.m_InventoryPutSound by invoking the provided action.
Declaration
public TBuilder ModifyInventoryPutSound(Action<string> action)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<System.String> | action |
Returns
| Type | Description |
|---|---|
| TBuilder |
ModifyInventoryTakeSound(Action<String>)
Modifies Kingmaker.Blueprints.Items.BlueprintItem.m_InventoryTakeSound by invoking the provided action.
Declaration
public TBuilder ModifyInventoryTakeSound(Action<string> action)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<System.String> | action |
Returns
| Type | Description |
|---|---|
| TBuilder |
ModifyNonIdentifiedDescriptionText(Action<LocalizedString>)
Modifies Kingmaker.Blueprints.Items.BlueprintItem.m_NonIdentifiedDescriptionText by invoking the provided action.
Declaration
public TBuilder ModifyNonIdentifiedDescriptionText(Action<LocalizedString> action)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<Kingmaker.Localization.LocalizedString> | action |
Returns
| Type | Description |
|---|---|
| TBuilder |
ModifyNonIdentifiedNameText(Action<LocalizedString>)
Modifies Kingmaker.Blueprints.Items.BlueprintItem.m_NonIdentifiedNameText by invoking the provided action.
Declaration
public TBuilder ModifyNonIdentifiedNameText(Action<LocalizedString> action)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<Kingmaker.Localization.LocalizedString> | action |
Returns
| Type | Description |
|---|---|
| TBuilder |
ModifyShardItem(Action<BlueprintItemReference>)
Modifies Kingmaker.Blueprints.Items.BlueprintItem.m_ShardItem by invoking the provided action.
Declaration
public TBuilder ModifyShardItem(Action<BlueprintItemReference> action)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<Kingmaker.Blueprints.BlueprintItemReference> | action |
Returns
| Type | Description |
|---|---|
| TBuilder |
ModifyTrashLootTypes(Action<TrashLootType>)
Modifies Kingmaker.Blueprints.Items.BlueprintItem.TrashLootTypes by invoking the provided action on each element.
Declaration
public TBuilder ModifyTrashLootTypes(Action<TrashLootType> action)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<Kingmaker.Enums.TrashLootType> | action |
Returns
| Type | Description |
|---|---|
| TBuilder |
OnConfigureCompleted()
Declaration
protected override void OnConfigureCompleted()
Overrides
RemoveFromTrashLootTypes(TrashLootType[])
Removes elements from Kingmaker.Blueprints.Items.BlueprintItem.TrashLootTypes
Declaration
public TBuilder RemoveFromTrashLootTypes(params TrashLootType[] trashLootTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| Kingmaker.Enums.TrashLootType[] | trashLootTypes |
Returns
| Type | Description |
|---|---|
| TBuilder |
RemoveFromTrashLootTypes(Func<TrashLootType, Boolean>)
Removes elements from Kingmaker.Blueprints.Items.BlueprintItem.TrashLootTypes that match the provided predicate.
Declaration
public TBuilder RemoveFromTrashLootTypes(Func<TrashLootType, bool> predicate)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Func<Kingmaker.Enums.TrashLootType, System.Boolean> | predicate |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetCost(Int32)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_Cost
Declaration
public TBuilder SetCost(int cost)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | cost |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetDescriptionText(LocalString)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_DescriptionText
Declaration
public TBuilder SetDescriptionText(LocalString descriptionText)
Parameters
| Type | Name | Description |
|---|---|---|
| LocalString | descriptionText | You can pass in the string using a LocalizedString or the Key to a LocalizedString. |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetDestructible(Boolean)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_Destructible
Declaration
public TBuilder SetDestructible(bool destructible = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | destructible |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetDisplayNameText(LocalString)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_DisplayNameText
Declaration
public TBuilder SetDisplayNameText(LocalString displayNameText)
Parameters
| Type | Name | Description |
|---|---|---|
| LocalString | displayNameText | You can pass in the string using a LocalizedString or the Key to a LocalizedString. |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetFlavorText(LocalString)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_FlavorText
Declaration
public TBuilder SetFlavorText(LocalString flavorText)
Parameters
| Type | Name | Description |
|---|---|---|
| LocalString | flavorText | You can pass in the string using a LocalizedString or the Key to a LocalizedString. |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetForceStackable(Boolean)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_ForceStackable
Declaration
public TBuilder SetForceStackable(bool forceStackable = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | forceStackable |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetIcon(Asset<Sprite>)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_Icon
Declaration
public TBuilder SetIcon(Asset<Sprite> icon)
Parameters
| Type | Name | Description |
|---|---|---|
| Asset<UnityEngine.Sprite> | icon | You can pass in the animation using a Sprite or it's AssetId. |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetInventoryPutSound(String)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_InventoryPutSound
Declaration
public TBuilder SetInventoryPutSound(string inventoryPutSound)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | inventoryPutSound |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetInventoryTakeSound(String)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_InventoryTakeSound
Declaration
public TBuilder SetInventoryTakeSound(string inventoryTakeSound)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | inventoryTakeSound |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetIsJunk(Boolean)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_IsJunk
Declaration
public TBuilder SetIsJunk(bool isJunk = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | isJunk | Tooltip: Include in the Mass Sell option at vendors |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetIsNotable(Boolean)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_IsNotable
Declaration
public TBuilder SetIsNotable(bool isNotable = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | isNotable |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetMiscellaneousType(BlueprintItem.MiscellaneousItemType)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_MiscellaneousType
Declaration
public TBuilder SetMiscellaneousType(BlueprintItem.MiscellaneousItemType miscellaneousType)
Parameters
| Type | Name | Description |
|---|---|---|
| Kingmaker.Blueprints.Items.BlueprintItem.MiscellaneousItemType | miscellaneousType |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetNeedSkinningForCollect(Boolean)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.NeedSkinningForCollect
Declaration
public TBuilder SetNeedSkinningForCollect(bool needSkinningForCollect = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | needSkinningForCollect |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetNonIdentifiedDescriptionText(LocalString)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_NonIdentifiedDescriptionText
Declaration
public TBuilder SetNonIdentifiedDescriptionText(LocalString nonIdentifiedDescriptionText)
Parameters
| Type | Name | Description |
|---|---|---|
| LocalString | nonIdentifiedDescriptionText | You can pass in the string using a LocalizedString or the Key to a LocalizedString. |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetNonIdentifiedNameText(LocalString)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_NonIdentifiedNameText
Declaration
public TBuilder SetNonIdentifiedNameText(LocalString nonIdentifiedNameText)
Parameters
| Type | Name | Description |
|---|---|---|
| LocalString | nonIdentifiedNameText | You can pass in the string using a LocalizedString or the Key to a LocalizedString. |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetShardItem(Blueprint<BlueprintItemReference>)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_ShardItem
Declaration
public TBuilder SetShardItem(Blueprint<BlueprintItemReference> shardItem)
Parameters
| Type | Name | Description |
|---|---|---|
| Blueprint<Kingmaker.Blueprints.BlueprintItemReference> | shardItem | InfoBox: Trash-item that remains after destruction. Gives a hint to user what source item was like. Blueprint of type BlueprintItem. You can pass in the blueprint using:
|
Returns
| Type | Description |
|---|---|
| TBuilder |
SetTrashLootTypes(TrashLootType[])
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.TrashLootTypes
Declaration
public TBuilder SetTrashLootTypes(params TrashLootType[] trashLootTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| Kingmaker.Enums.TrashLootType[] | trashLootTypes |
Returns
| Type | Description |
|---|---|
| TBuilder |
SetWeight(Single)
Sets the value of Kingmaker.Blueprints.Items.BlueprintItem.m_Weight
Declaration
public TBuilder SetWeight(float weight)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | weight |
Returns
| Type | Description |
|---|---|
| TBuilder |