diff --git a/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeSelectDialog.cs b/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeSelectDialog.cs index 171531ba..68b5cc63 100644 --- a/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeSelectDialog.cs +++ b/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeSelectDialog.cs @@ -35,8 +35,12 @@ public class RecipeSelectDialog : MonoBehaviour // レシピ一覧生成 var content = scrollRect.content; content.transform.DestroyAllChildrens(); - var data = SpreadsheetDataManager.Instance.GetBaseDataList(Const.ProductDataSheet); - foreach (var productData in data) + var productDataList = SpreadsheetDataManager.Instance.GetBaseDataList(Const.ProductDataSheet); + var shopData = SpreadsheetDataManager.Instance.GetBaseDataList(Const.ShopDataSheet); + var shopRecipes = shopData.Where(data => data.Category == ItemCategory.Recipe).Select(data => data.itemId); + var targetList = productDataList.Where(data => data.shopLevel != Const.SpecialShopLevel || shopRecipes.Contains(data.id)).ToList(); + + foreach (var productData in targetList) { var view = Instantiate(recipePrefab, content.transform); view.SetRecipe(productData);