Class BaseUnitLootConfigurator<T, TBuilder>
Implements common fields and components for blueprints inheriting from Kingmaker.Blueprints.Loot.BlueprintUnitLoot.
Inheritance
Inherited Members
Namespace: BlueprintCore.Blueprints.Configurators.Loot
Assembly: BlueprintCore.dll
Syntax
public abstract class BaseUnitLootConfigurator<T, TBuilder> : BaseBlueprintConfigurator<T, TBuilder> where T : BlueprintUnitLoot where TBuilder : BaseUnitLootConfigurator<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 SourceBaseUnitLootConfigurator(Blueprint<BlueprintReference<T>>)
Declaration
protected BaseUnitLootConfigurator(Blueprint<BlueprintReference<T>> blueprint)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintReference<T>> | blueprint |
Methods
| Improve this Doc View SourceAddDungeonVendorItemsComponent(Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>)
Adds Kingmaker.Dungeon.Blueprints.DungeonVendorItemsComponent
Declaration
public TBuilder AddDungeonVendorItemsComponent(bool? bigTable = null, int? count = null, int? minCR = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Boolean> | bigTable | |
System.Nullable<System.Int32> | count | |
System.Nullable<System.Int32> | minCR |
Returns
Type | Description |
---|---|
TBuilder |
Remarks
- RogueLike_DragonVendorTable08e090bb2038e3d47be56d8752d5dcaf
- RogueLike_NPCVendorTablea6bae621a7bd96b4fb3c1511cd2f9fac
AddLootItemsPackFixed(Nullable<Int32>, LootItem)
Adds Kingmaker.Blueprints.Loot.LootItemsPackFixed
Declaration
public TBuilder AddLootItemsPackFixed(int? count = null, LootItem item = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | count | |
Kingmaker.Blueprints.Loot.LootItem | item |
Returns
Type | Description |
---|---|
TBuilder |
Remarks
- Aminas_Chapter5VendorTable8b2dae3f8da96f640995594f6bcf7a29
- DLC5_BarmenGemilHokksLootTable6afe35de6a40417f88e23db08fc4c81b
- WyvernMeatLootabe034c3a49a1854496fa6fe1f439114
AddLootItemsPackFixedAndNotInPlayerInitialInventory(Nullable<Int32>, LootItem)
Adds Kingmaker.Blueprints.Loot.LootItemsPackFixedAndNotInPlayerInitialInventory
Declaration
public TBuilder AddLootItemsPackFixedAndNotInPlayerInitialInventory(int? count = null, LootItem item = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | count | |
Kingmaker.Blueprints.Loot.LootItem | item |
Returns
Type | Description |
---|---|
TBuilder |
Remarks
- BlacksmithWeapon_DLC1VendorTable7d73798a7e624afa8340916c7461cf12
- HilorArmor_DLC1VendorTable84fb4303222b413eb42daeb8d98a30dd
- Tailor_DLC1VendorTable1301b28b1b3924e55989c41288048e4d2
AddLootItemsPackVariable(Nullable<Int32>, Nullable<Int32>, LootItem)
Adds Kingmaker.Blueprints.Loot.LootItemsPackVariable
Declaration
public TBuilder AddLootItemsPackVariable(int? countFrom = null, int? countTo = null, LootItem item = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | countFrom | |
System.Nullable<System.Int32> | countTo | |
Kingmaker.Blueprints.Loot.LootItem | item |
Returns
Type | Description |
---|---|
TBuilder |
Remarks
- Coins10182247c9a4bfb9244b86cdc80b7d61da
- Coins303ea3fbb492dbc374f8390b1eabd47f89
- HydraEyeLoot66496a2143a9bce468d3fffce09f3587
AddLootRandomItem(LootItemAndWeight[])
Adds Kingmaker.Blueprints.Loot.LootRandomItem
Declaration
public TBuilder AddLootRandomItem(params LootItemAndWeight[] items)
Parameters
Type | Name | Description |
---|---|---|
Kingmaker.Blueprints.Loot.LootItemAndWeight[] | items |
Returns
Type | Description |
---|---|
TBuilder |
Remarks
- CultistsLootClericScrolls1668d29eefe4b614459ef48abad5efeb0
- JewelryCR6c8d223433f2dbfc4080569ea7f4792db
- TrashLootStandardWeaponsAndArmor6414d0eccbb66364bb1ef9f57599fc5c
CopyFrom(Blueprint<BlueprintReference<BlueprintUnitLoot>>, Predicate<BlueprintComponent>)
Copies fields and components of the specified types from the blueprint.
Declaration
public TBuilder CopyFrom(Blueprint<BlueprintReference<BlueprintUnitLoot>> blueprint, Predicate<BlueprintComponent> componentMatcher)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintReference<Kingmaker.Blueprints.Loot.BlueprintUnitLoot>> | 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<BlueprintUnitLoot>>, Type[])
Copies fields and components of the specified types from the blueprint.
Declaration
public TBuilder CopyFrom(Blueprint<BlueprintReference<BlueprintUnitLoot>> blueprint, params Type[] componentTypes)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintReference<Kingmaker.Blueprints.Loot.BlueprintUnitLoot>> | 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();
ModifyDummy(Action<BlueprintUnitLoot.Dummy>)
Modifies Kingmaker.Blueprints.Loot.BlueprintUnitLoot.m_Dummy by invoking the provided action.
Declaration
public TBuilder ModifyDummy(Action<BlueprintUnitLoot.Dummy> action)
Parameters
Type | Name | Description |
---|---|---|
System.Action<Kingmaker.Blueprints.Loot.BlueprintUnitLoot.Dummy> | action |
Returns
Type | Description |
---|---|
TBuilder |
SetDummy(BlueprintUnitLoot.Dummy)
Sets the value of Kingmaker.Blueprints.Loot.BlueprintUnitLoot.m_Dummy
Declaration
public TBuilder SetDummy(BlueprintUnitLoot.Dummy dummy)
Parameters
Type | Name | Description |
---|---|---|
Kingmaker.Blueprints.Loot.BlueprintUnitLoot.Dummy | dummy |
Returns
Type | Description |
---|---|
TBuilder |