/// <summary> /// Is the shop item in the filter by item Id? /// </summary> /// <param name="item"></param> /// <returns></returns> private bool InItemFilter(ShopItem item) { if (currentItemFilter == null) { return(true); } foreach (var itemId in currentItemFilter) { if (item.GetBase().ContainsItem(itemId)) { return(true); } } return(false); }