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

◆ AddPylonsToBartenderShop()

void Terraria.ModLoader.Default.PylonShopNPC.AddPylonsToBartenderShop ( NPC npc,
Item[] items )
inlineprivate

Definition at line 42 of file PylonShopNPC.cs.

43 {
44 int slot;
45 if (items[4].IsAir)
46 {
47 slot = 4;
48 }
49 else
50 {
51 if (!items[30].IsAir)
52 {
53 return;
54 }
55 slot = 30;
56 }
57 foreach (NPCShop.Entry entry in _pylonEntries)
58 {
59 if (entry.Disabled || !entry.ConditionsMet())
60 {
61 continue;
62 }
63 items[slot] = entry.Item.Clone();
64 entry.OnShopOpen(items[slot], npc);
65 do
66 {
67 if (++slot >= items.Length)
68 {
69 return;
70 }
71 }
72 while (!items[slot].IsAir);
73 }
74 }
static List< NPCShop.Entry > _pylonEntries

References Terraria.Item.Item(), and Terraria.ModLoader.Default.PylonShopNPC._pylonEntries.

Referenced by Terraria.ModLoader.Default.PylonShopNPC.ModifyActiveShop().

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