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

◆ ModifyTownNPCProfile()

virtual ITownNPCProfile Terraria.ModLoader.GlobalNPC.ModifyTownNPCProfile ( NPC npc)
inlinevirtualinherited

Allows you to set the town NPC profile that a given NPC uses.

Parameters
npcThe NPC in question.
Returns
The profile that you want the given NPC to use.
This will only influence their choice of profile if you do not return null.
By default, returns null, which causes no change.

Definition at line 93 of file GlobalNPC.cs.

94 {
95 return null;
96 }