From 9bd86247a7b6cd135fc3c515fa712a086f789734 Mon Sep 17 00:00:00 2001 From: NTG Date: Fri, 29 Aug 2025 19:06:54 +0900 Subject: [PATCH] =?UTF-8?q?cook=5Fsystem=20=EB=B3=91=ED=95=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../State/FlowStates/RestaurantManagementState.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/_DDD/_Scripts/Restaurant/State/FlowStates/RestaurantManagementState.cs b/Assets/_DDD/_Scripts/Restaurant/State/FlowStates/RestaurantManagementState.cs index e6164cd50..d74454884 100644 --- a/Assets/_DDD/_Scripts/Restaurant/State/FlowStates/RestaurantManagementState.cs +++ b/Assets/_DDD/_Scripts/Restaurant/State/FlowStates/RestaurantManagementState.cs @@ -272,15 +272,15 @@ public bool HasAddedCookByCookwareKey(string cookwareKey) public bool TryCookingById(string recipeId) { - if (_todayFoodRecipeIds.TryGetValue(recipeId, out var foodCount) && foodCount > 0) + if (_todayFoodRecipeAndAmounts.TryGetValue(recipeId, out var foodCount) && foodCount > 0) { - _todayFoodRecipeIds[recipeId] -= 1; + _todayFoodRecipeAndAmounts[recipeId] -= 1; return true; } - if (_todayDrinkRecipeIds.TryGetValue(recipeId, out var drinkCount) && drinkCount > 0) + if (_todayDrinkRecipeAndAmounts.TryGetValue(recipeId, out var drinkCount) && drinkCount > 0) { - _todayDrinkRecipeIds[recipeId] -= 1; + _todayDrinkRecipeAndAmounts[recipeId] -= 1; return true; }