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

◆ ModifyActiveShop()

virtual void Terraria.ModLoader.GlobalNPC.ModifyActiveShop ( NPC npc,
string shopName,
Item[] items )
inlinevirtualinherited

Allows you to modify the contents of a shop whenever player opens it.
If possible, use M:Terraria.ModLoader.GlobalNPC.ModifyShop(Terraria.ModLoader.NPCShop) instead, to reduce mod conflicts and improve compatibility. Note that for special shops like travelling merchant, the shopName may not correspond to a T:Terraria.ModLoader.NPCShop in the T:Terraria.ModLoader.NPCShopDatabase

Parameters
npcAn instance of
See also
T:Terraria.NPC
that currently player talks to.
shopNameThe full name of the shop being opened. See M:Terraria.ModLoader.NPCShopDatabase.GetShopName(System.Int32,System.String) for the format.
itemsItems in the shop including 'air' items in empty slots.

Reimplemented in Terraria.ModLoader.Default.PylonShopNPC.

Definition at line 651 of file GlobalNPC.cs.

652 {
653 }