tModLoader v2024.11
A mod to make and play Terraria mods
|
This struct provides access to an NPC type's NPC & Biome relationships. More...
Public Member Functions | |
NPCHappiness | SetBiomeAffection (IShoppingBiome biome, AffectionLevel affectionLevel) |
NPCHappiness | SetBiomeAffection< T > (AffectionLevel affectionLevel) |
NPCHappiness | SetNPCAffection (int npcId, AffectionLevel affectionLevel) |
NPCHappiness | SetNPCAffection< T > (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. More... | |
NPCHappiness NPCHappiness.SetBiomeAffection< T > | ( | AffectionLevel | affectionLevel | ) |
T | : | class | |
T | : | ILoadable | |
T | : | IShoppingBiome | |
T | : | SetBiomeAffection | |
T | : | ModContent.GetInstance<T>() | |
T | : | affectionLevel |
NPCHappiness NPCHappiness.SetNPCAffection< T > | ( | AffectionLevel | affectionLevel | ) |
T | : | ModNPC | |
T | : | SetNPCAffection | |
T | : | ModContent.GetInstance<T>() | |
T | : | Type | |
T | : | affectionLevel |
|
static |
Allows you to modify the shop price multipliers associated with a (biome/npc type) relationship level.