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

◆ firstNPCName()

static string Terraria.NPC.firstNPCName ( int npcType)
inlinestatic

Definition at line 1537 of file NPC.cs.

1538 {
1539 for (int i = 0; i < 200; i++)
1540 {
1541 if (Main.npc[i].active && Main.npc[i].type == npcType)
1542 {
1543 return Main.npc[i].GivenOrTypeName;
1544 }
1545 }
1546 return getNewNPCName(npcType);
1547 }
static string getNewNPCName(int npcType)
Definition NPC.cs:1417

References Terraria.NPC.getNewNPCName(), and Terraria.Main.npc.