cook_system 병합
This commit is contained in:
parent
de70e83859
commit
9bd86247a7
@ -272,15 +272,15 @@ public bool HasAddedCookByCookwareKey(string cookwareKey)
|
|||||||
|
|
||||||
public bool TryCookingById(string recipeId)
|
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;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user