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

◆ GivenName

string Terraria.NPC.GivenName
getset

The GIVEN name of this NPC. Can be set directly.
Given names are unique to each NPC, though two NPCs can have the same given name.
Some vanilla examples of given names are Andrew (for the Guide), Yorai (for the Princess), Whitney (for the Steampunker), or Scarlett (for the Stylist).

Definition at line 1467 of file NPC.cs.

1468 {
1469 get
1470 {
1471 return _givenName;
1472 }
1473 set
1474 {
1475 _givenName = value ?? "";
1476 }
1477 }
float value
How many copper coins the NPC will drop when killed (100 copper coins = 1 silver coin etc....
Definition NPC.cs:1156
string _givenName
Definition NPC.cs:606

Referenced by Terraria.NPC.AI_007_TownEntities(), Terraria.ModLoader.IO.WorldIO.SaveNPCs(), and Terraria.NPC.SetDefaults().