Class BaseDungeonIslandRewardLootConfigurator<T, TBuilder>
Implements common fields and components for blueprints inheriting from Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot.
Inheritance
Inherited Members
Namespace: BlueprintCore.Blueprints.Configurators.Dungeon
Assembly: BlueprintCore.dll
Syntax
public abstract class BaseDungeonIslandRewardLootConfigurator<T, TBuilder> : BaseDungeonIslandRewardConfigurator<T, TBuilder> where T : BlueprintDungeonIslandRewardLoot where TBuilder : BaseDungeonIslandRewardLootConfigurator<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 SourceBaseDungeonIslandRewardLootConfigurator(Blueprint<BlueprintReference<T>>)
Declaration
protected BaseDungeonIslandRewardLootConfigurator(Blueprint<BlueprintReference<T>> blueprint)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintReference<T>> | blueprint |
Methods
| Improve this Doc View SourceAddToItems(Blueprint<BlueprintItemReference>[])
Adds to the contents of Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot.m_Items
Declaration
public TBuilder AddToItems(params Blueprint<BlueprintItemReference>[] items)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintItemReference>[] | items | Blueprint of type BlueprintItem. You can pass in the blueprint using:
|
Returns
Type | Description |
---|---|
TBuilder |
ClearItems()
Removes all elements from Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot.m_Items
Declaration
public TBuilder ClearItems()
Returns
Type | Description |
---|---|
TBuilder |
CopyFrom(Blueprint<BlueprintReference<BlueprintDungeonIslandRewardLoot>>, Predicate<BlueprintComponent>)
Copies fields and components of the specified types from the blueprint.
Declaration
public TBuilder CopyFrom(Blueprint<BlueprintReference<BlueprintDungeonIslandRewardLoot>> blueprint, Predicate<BlueprintComponent> componentMatcher)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintReference<Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot>> | 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<BlueprintDungeonIslandRewardLoot>>, Type[])
Copies fields and components of the specified types from the blueprint.
Declaration
public TBuilder CopyFrom(Blueprint<BlueprintReference<BlueprintDungeonIslandRewardLoot>> blueprint, params Type[] componentTypes)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintReference<Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot>> | 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();
ModifyContainer(Action<BlueprintDynamicMapObjectReference>)
Modifies Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot.m_Container by invoking the provided action.
Declaration
public TBuilder ModifyContainer(Action<BlueprintDynamicMapObjectReference> action)
Parameters
Type | Name | Description |
---|---|---|
System.Action<Kingmaker.Blueprints.BlueprintDynamicMapObjectReference> | action |
Returns
Type | Description |
---|---|
TBuilder |
ModifyItems(Action<BlueprintItemReference>)
Modifies Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot.m_Items by invoking the provided action on each element.
Declaration
public TBuilder ModifyItems(Action<BlueprintItemReference> action)
Parameters
Type | Name | Description |
---|---|---|
System.Action<Kingmaker.Blueprints.BlueprintItemReference> | action |
Returns
Type | Description |
---|---|
TBuilder |
OnConfigureCompleted()
Declaration
protected override void OnConfigureCompleted()
Overrides
RemoveFromItems(Blueprint<BlueprintItemReference>[])
Removes elements from Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot.m_Items
Declaration
public TBuilder RemoveFromItems(params Blueprint<BlueprintItemReference>[] items)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintItemReference>[] | items | Blueprint of type BlueprintItem. You can pass in the blueprint using:
|
Returns
Type | Description |
---|---|
TBuilder |
RemoveFromItems(Func<BlueprintItemReference, Boolean>)
Removes elements from Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot.m_Items that match the provided predicate.
Declaration
public TBuilder RemoveFromItems(Func<BlueprintItemReference, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<Kingmaker.Blueprints.BlueprintItemReference, System.Boolean> | predicate |
Returns
Type | Description |
---|---|
TBuilder |
SetContainer(Blueprint<BlueprintDynamicMapObjectReference>)
Sets the value of Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot.m_Container
Declaration
public TBuilder SetContainer(Blueprint<BlueprintDynamicMapObjectReference> container)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintDynamicMapObjectReference> | container | Blueprint of type BlueprintDynamicMapObject. You can pass in the blueprint using:
|
Returns
Type | Description |
---|---|
TBuilder |
SetCount(Int32)
Sets the value of Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot.Count
Declaration
public TBuilder SetCount(int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | count |
Returns
Type | Description |
---|---|
TBuilder |
SetDoNotGiveDuplicates(Boolean)
Sets the value of Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot.DoNotGiveDuplicates
Declaration
public TBuilder SetDoNotGiveDuplicates(bool doNotGiveDuplicates = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | doNotGiveDuplicates |
Returns
Type | Description |
---|---|
TBuilder |
SetItems(Blueprint<BlueprintItemReference>[])
Sets the value of Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot.m_Items
Declaration
public TBuilder SetItems(params Blueprint<BlueprintItemReference>[] items)
Parameters
Type | Name | Description |
---|---|---|
Blueprint<Kingmaker.Blueprints.BlueprintItemReference>[] | items | Blueprint of type BlueprintItem. You can pass in the blueprint using:
|
Returns
Type | Description |
---|---|
TBuilder |
SetPriceMultiplierMax(Single)
Sets the value of Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot.PriceMultiplierMax
Declaration
public TBuilder SetPriceMultiplierMax(float priceMultiplierMax)
Parameters
Type | Name | Description |
---|---|---|
System.Single | priceMultiplierMax | Tooltip: Highest price multiplier of a single item. Base price is the price of a whole chest for current area CR. |
Returns
Type | Description |
---|---|
TBuilder |
SetPriceMultiplierMin(Single)
Sets the value of Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot.PriceMultiplierMin
Declaration
public TBuilder SetPriceMultiplierMin(float priceMultiplierMin)
Parameters
Type | Name | Description |
---|---|---|
System.Single | priceMultiplierMin | Tooltip: Lowest price multiplier of a single item. Base price is the price of a whole chest for current area CR. |
Returns
Type | Description |
---|---|
TBuilder |
SetRespectAreaCR(Boolean)
Sets the value of Kingmaker.Dungeon.Blueprints.BlueprintDungeonIslandRewardLoot.RespectAreaCR
Declaration
public TBuilder SetRespectAreaCR(bool respectAreaCR = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | respectAreaCR |
Returns
Type | Description |
---|---|
TBuilder |