This struct provides access to an NPC type's NPC & Biome relationships.
More...
|
static readonly Dictionary< AffectionLevel, float > | AffectionLevelToPriceMultiplier |
| Allows you to modify the shop price multipliers associated with a (biome/npc type) relationship level. More...
|
|
This struct provides access to an NPC type's NPC & Biome relationships.
◆ SetBiomeAffection< T >()
NPCHappiness Terraria.ModLoader.NPCHappiness.SetBiomeAffection< T > |
( |
AffectionLevel |
affectionLevel | ) |
|
- Type Constraints
-
T | : | class | |
T | : | ILoadable | |
T | : | IShoppingBiome | |
T | : | SetBiomeAffection | |
T | : | ModContent.GetInstance<T>() | |
T | : | affectionLevel | |
◆ SetNPCAffection< T >()
NPCHappiness Terraria.ModLoader.NPCHappiness.SetNPCAffection< T > |
( |
AffectionLevel |
affectionLevel | ) |
|
- Type Constraints
-
T | : | ModNPC | |
T | : | SetNPCAffection | |
T | : | ModContent.GetInstance<T>() | |
T | : | Type | |
T | : | affectionLevel | |
◆ AffectionLevelToPriceMultiplier
readonly Dictionary<AffectionLevel, float> Terraria.ModLoader.NPCHappiness.AffectionLevelToPriceMultiplier |
|
static |
Initial value:= new() {
{ AffectionLevel.Hate, ShopHelper.hateValue },
{ AffectionLevel.Dislike, ShopHelper.dislikeValue },
{ AffectionLevel.Like, ShopHelper.likeValue },
{ AffectionLevel.Love, ShopHelper.loveValue },
}
Allows you to modify the shop price multipliers associated with a (biome/npc type) relationship level.