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

◆ GetCookingMethod()

CookingMethodType GetCookingMethod ( ItemBase cooking_equipment)
protected

DEPRECATED.

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

533 {
534 if (cooking_equipment.Type() == COOKING_EQUIPMENT_POT || cooking_equipment.Type() == COOKING_EQUIPMENT_CAULDRON)
535 {
536 //has water, but not petrol dammit X)
537 if (cooking_equipment.GetQuantity() > 0 && cooking_equipment.GetLiquidType() != LIQUID_GASOLINE)
538 {
539 return CookingMethodType.BOILING;
540 }
541
542 //has lard in cargo
543 if (GetItemTypeFromCargo(COOKING_INGREDIENT_LARD, cooking_equipment))
544 {
545 return CookingMethodType.BAKING;
546 }
547 return CookingMethodType.DRYING;
548 }
549
550 if (cooking_equipment.Type() == COOKING_EQUIPMENT_FRYINGPAN)
551 {
552 if (GetItemTypeFromCargo(COOKING_INGREDIENT_LARD, cooking_equipment))
553 {
554 return CookingMethodType.BAKING;
555 }
556 return CookingMethodType.DRYING;
557 }
558
559 return CookingMethodType.NONE;
560 }
COOKING_EQUIPMENT_CAULDRON
Определения Cooking.c:34
CookingMethodType
Определения Cooking.c:2
COOKING_EQUIPMENT_POT
0..1, validly cooked item will pre-emptively start emitting burning sounds when this close to being b...
Определения Cooking.c:32
COOKING_INGREDIENT_LARD
Определения Cooking.c:35
COOKING_EQUIPMENT_FRYINGPAN
Определения Cooking.c:33
ItemBase GetItemTypeFromCargo(typename item_type, ItemBase cooking_equipment)
Cooking data.
Определения Cooking.c:410
const int LIQUID_GASOLINE
Определения constants.c:543

Перекрестные ссылки COOKING_EQUIPMENT_CAULDRON, COOKING_EQUIPMENT_FRYINGPAN, COOKING_EQUIPMENT_POT, COOKING_INGREDIENT_LARD, GetItemTypeFromCargo() и LIQUID_GASOLINE.