DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetCookingMethodWithTimeOverride()

Param2< CookingMethodType, float > GetCookingMethodWithTimeOverride ( ItemBase cooking_equipment)
protected

when cooking in gasoline, jump to drying state(will be burnt then)

См. определение в файле Cooking.c строка 430

431 {
432 if (cooking_equipment.IsCookware())
433 {
434 if (cooking_equipment.GetQuantity() > 0)
435 {
436 if (cooking_equipment.GetLiquidType() == LIQUID_GASOLINE)
437 {
440 }
441
443 }
444
445 if (GetItemTypeFromCargo(COOKING_INGREDIENT_LARD, cooking_equipment))
446 {
447 //has lard in cargo, slower process
449 }
450
451 if (cooking_equipment.GetInventory().GetCargo().GetItemCount() > 0)
452 {
454 }
455
457 }
458 else if (cooking_equipment.IsLiquidContainer() && cooking_equipment.GetQuantity() > 0 && cooking_equipment.GetLiquidType() != LIQUID_GASOLINE) //fake 'boiling' on liquid containers, for effects playback
459 {
461 }
462
464 }
CookingMethodType
Определения Cooking.c:2
enum CookingMethodType TIME_WITH_SUPPORT_MATERIAL_COEF
COOKING_INGREDIENT_LARD
Определения Cooking.c:35
static const float TIME_WITHOUT_SUPPORT_MATERIAL_COEF
time modifier used when not using support material
Определения Cooking.c:15
ItemBase GetItemTypeFromCargo(typename item_type, ItemBase cooking_equipment)
Cooking data.
Определения Cooking.c:410
Определения PPEConstants.c:68
const int LIQUID_GASOLINE
Определения constants.c:543

Перекрестные ссылки COOKING_INGREDIENT_LARD, GetItemTypeFromCargo(), LIQUID_GASOLINE, TIME_WITH_SUPPORT_MATERIAL_COEF и TIME_WITHOUT_SUPPORT_MATERIAL_COEF.

Используется в CookWithEquipment().