|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inline |
Adds an item to the first empty slot in this shop.
| newItem | The item to add. |
0 if the item could not be added to the shop, or the index in F:Terraria.Chest.item if the item was successfully added.Definition at line 1043 of file Chest.cs.
References Terraria.Item.buyOnce, Terraria.Item.favorited, Terraria.Chest.item, Terraria.Main.shopSellbackHelper, Terraria.Item.stack, and Terraria.Item.value.
Referenced by Terraria.UI.ItemSlot.LeftClick(), and Terraria.UI.ItemSlot.SellOrTrash().
Here is the caller graph for this function: