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

◆ ModifyActiveShop()

static void Terraria.ModLoader.NPCLoader.ModifyActiveShop ( NPC npc,
string shopName,
Item[] shopContents )
inlinestatic

Definition at line 1505 of file NPCLoader.cs.

1506 {
1507 GetNPC(npc.type)?.ModifyActiveShop(shopName, shopContents);
1509 while (enumerator.MoveNext())
1510 {
1511 enumerator.Current.ModifyActiveShop(npc, shopName, shopContents);
1512 }
1513 }
static ModNPC GetNPC(int type)
Gets the ModNPC template instance corresponding to the specified type (not the clone/new instance whi...
Definition NPCLoader.cs:295
static GlobalHookList< GlobalNPC > HookModifyActiveShop
Definition NPCLoader.cs:234

References Terraria.ModLoader.NPCLoader.GetNPC(), Terraria.ModLoader.NPCLoader.HookModifyActiveShop, and Terraria.NPC.type.

Referenced by Terraria.Chest.SetupShop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: