284 {
285
286 float food_temperature = item_to_cook.GetTemperature();
287
288
289
291 float food_min_temp = 0;
292 float food_time_to_cook = 0;
293 bool is_done = false;
294 bool is_burned = false;
295
296
298 {
300 next_stage_cooking_properties = FoodStage.GetAllCookingPropertiesForStage( new_stage_type, null, item_to_cook.GetType() );
301
302 food_min_temp = next_stage_cooking_properties.Get( eCookingPropertyIndices.MIN_TEMP );
303 food_time_to_cook = next_stage_cooking_properties.Get( eCookingPropertyIndices.COOK_TIME );
304 }
305
306 if (item_to_cook.GetInventory().IsAttachment())
307 {
308
310 }
311
312
313 if (food_min_temp > 0 && food_temperature >= food_min_temp)
314 {
315
317
318 float new_cooking_time = item_to_cook.
GetCookingTime() + cook_time_inc;
320
321
323 {
326 {
328
330 }
331
333 return 1;
334 }
335 }
336 else
337 {
339 }
340
341 return 0;
342 }
static const float COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE
how many units from quantity of lard are remove at each stage
void DecreaseCookedItemQuantity(notnull Edible_Base pItem, float pAmount=0.0)
void AddTemperatureToItem(ItemBase cooked_item, ItemBase cooking_equipment, float min_temperature)
void MakeSoundsOnClient(bool soundstate, CookingMethodType cookingMethod=CookingMethodType.NONE)
FoodStageType GetFoodStageType()
FoodStageType GetNextFoodStageType(CookingMethodType cooking_method)
void SetCookingTime(float time)
void ChangeFoodStage(FoodStageType new_food_stage_type)
bool CanChangeToNewStage(CookingMethodType cooking_method)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.