345 {
346 if (item_to_cook)
347 {
348 float new_cook_time = item_to_cook.
GetCookingTime() + cook_time_inc;
349 float drying_cook_time = FoodStage.GetCookingPropertyFromIndex(eCookingPropertyIndices.COOK_TIME,
FoodStageType.DRIED, null, item_to_cook.GetType());
350 float drying_cook_temp = FoodStage.GetCookingPropertyFromIndex(eCookingPropertyIndices.MIN_TEMP,
FoodStageType.DRIED, null, item_to_cook.GetType());
351 float itemTemp = item_to_cook.GetTemperature();
352
353 if (itemTemp >= drying_cook_temp)
354 {
356 {
359
361 {
364 }
365 break;
366
367 default:
369
371 {
374 }
375 break;
376 }
377 }
378 }
379 }
FoodStageType GetFoodStageType()
void SetCookingTime(float time)
void ChangeFoodStage(FoodStageType new_food_stage_type)