TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ AffectionLevelToPriceMultiplier

readonly Dictionary<AffectionLevel, float> Terraria.ModLoader.NPCHappiness.AffectionLevelToPriceMultiplier
static
Initial value:
{
{
AffectionLevel.Hate,
1.12f
},
{
AffectionLevel.Dislike,
1.06f
},
{
AffectionLevel.Like,
0.94f
},
{
AffectionLevel.Love,
0.88f
}
}

Allows you to modify the shop price multipliers associated with a (biome/npc type) relationship level.

Definition at line 12 of file NPCHappiness.cs.

13 {
14 {
15 AffectionLevel.Hate,
16 1.12f
17 },
18 {
19 AffectionLevel.Dislike,
20 1.06f
21 },
22 {
23 AffectionLevel.Like,
24 0.94f
25 },
26 {
27 AffectionLevel.Love,
28 0.88f
29 }
30 };

Referenced by Terraria.GameContent.ShopHelper.ApplyBiomeRelationshipEffect(), Terraria.GameContent.ShopHelper.ApplyNpcRelationshipEffect(), Terraria.GameContent.ShopHelper.LikePrincess(), and Terraria.GameContent.ShopHelper.LoveNPCByTypeName().