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

◆ LoveNPCByTypeName()

void Terraria.GameContent.ShopHelper.LoveNPCByTypeName ( int npcType)
inlinepackage

Definition at line 263 of file ShopHelper.cs.

264 {
266 {
267 AddHappinessReportText("Princess_LovesNPC", new
268 {
269 NPCName = NPC.GetFullnameByID(npcType)
270 }, npcType);
271 }
272 else
273 {
274 AddHappinessReportText("LoveNPC_" + NPCID.Search.GetName(npcType), new
275 {
276 NPCName = NPC.GetFullnameByID(npcType)
277 });
278 }
280 }
void AddHappinessReportText(string textKeyInCategory, object substitutes=null, int otherNPCType=0)
static readonly short Count
Definition NPCID.cs:12909
static readonly IdDictionary Search
Definition NPCID.cs:12911
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
Definition NPC.cs:990
static readonly Dictionary< AffectionLevel, float > AffectionLevelToPriceMultiplier
Allows you to modify the shop price multipliers associated with a (biome/npc type) relationship level...
This struct provides access to an NPC type's NPC & Biome relationships.

References Terraria.GameContent.ShopHelper._currentNPCBeingTalkedTo, Terraria.GameContent.ShopHelper._currentPriceAdjustment, Terraria.GameContent.ShopHelper.AddHappinessReportText(), Terraria.ModLoader.NPCHappiness.AffectionLevelToPriceMultiplier, Terraria.ID.NPCID.Count, Terraria.NPC.GetFullnameByID(), Terraria.ID.NPCID.Search, and Terraria.NPC.type.

+ Here is the call graph for this function: