TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.ModLoader.NPCHappiness Struct Reference

This struct provides access to an NPC type's NPC & Biome relationships. More...

+ Collaboration diagram for Terraria.ModLoader.NPCHappiness:

Public Member Functions

NPCHappiness SetNPCAffection< T > (AffectionLevel affectionLevel)
 
NPCHappiness SetNPCAffection (int npcId, AffectionLevel affectionLevel)
 
NPCHappiness SetBiomeAffection< T > (AffectionLevel affectionLevel)
 
NPCHappiness SetBiomeAffection (IShoppingBiome biome, AffectionLevel affectionLevel)
 

Static Public Member Functions

static NPCHappiness Get (int npcType)
 

Public Attributes

readonly int NpcType
 

Static Public Attributes

static readonly Dictionary< AffectionLevel, float > AffectionLevelToPriceMultiplier
 Allows you to modify the shop price multipliers associated with a (biome/npc type) relationship level.
 

Static Package Functions

static void RegisterVanillaNpcRelationships ()
 

Private Member Functions

 NPCHappiness (int npcType)
 

Detailed Description

This struct provides access to an NPC type's NPC & Biome relationships.

Definition at line 9 of file NPCHappiness.cs.


The documentation for this struct was generated from the following file: