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

◆ GetFirstNPCNameOrNull()

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

Definition at line 1549 of file NPC.cs.

1550 {
1551 for (int i = 0; i < 200; i++)
1552 {
1553 if (Main.npc[i].active && Main.npc[i].type == npcType)
1554 {
1555 return Main.npc[i].GivenOrTypeName;
1556 }
1557 }
1558 return null;
1559 }

References Terraria.Main.npc.

Referenced by Terraria.Lang.CreateDialogSubstitutionObject().