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

◆ ModifyActiveShop()

virtual void Terraria.ModLoader.ModNPC.ModifyActiveShop ( string shopName,
Item[] items )
inlinevirtual

Allows you to modify the contents of a shop whenever player opens it.
To create a shop, use M:Terraria.ModLoader.ModNPC.AddShops
Note that for special shops like travelling merchant, the shopId may not correspond to a T:Terraria.ModLoader.NPCShop in the T:Terraria.ModLoader.NPCShopDatabase

Parameters
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.

Definition at line 747 of file ModNPC.cs.

748 {
749 }