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

◆ Add()

void Terraria.GameContent.ItemShopSellbackHelper.Add ( Item item)
inline

Definition at line 34 of file ItemShopSellbackHelper.cs.

35 {
36 ItemMemo itemMemo = _memos.Find((ItemMemo x) => x.Matches(item));
37 if (itemMemo != null)
38 {
39 itemMemo.stack += item.stack;
40 }
41 else
42 {
43 _memos.Add(new ItemMemo(item));
44 }
45 }
void Add(TKey key, TValue value)

References Terraria.GameContent.ItemShopSellbackHelper._memos, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), and Terraria.GameContent.ItemShopSellbackHelper.ItemMemo.Matches().