DayZ 1.24
|
Go to the source code of this file.
Enumerations | |
enum | CookingMethodType { NONE = 0 , BAKING = 1 , BOILING = 2 , DRYING = 3 , TIME = 4 , COUNT } |
|
protected |
Definition at line 474 of file Cooking.c.
References Math::Clamp(), DEFAULT_COOKING_TEMPERATURE, FOOD_MAX_COOKING_TEMPERATURE, and GetGame().
Referenced by ProcessItemToCook(), UpdateCookingState(), and UpdateCookingStateOnStick().
int CookOnStick | ( | Edible_Base | item_to_cook, |
float | cook_time_inc ) |
Definition at line 137 of file Cooking.c.
References UpdateCookingStateOnStick().
cooking time coef override
Definition at line 72 of file Cooking.c.
References GetCookingMethodWithTimeOverride(), LIQUID_BOILING_POINT, LIQUID_VAPOR_QUANTITY, and ProcessItemToCook().
|
protected |
Definition at line 498 of file Cooking.c.
References Math::Clamp(), and GetGame().
Referenced by UpdateCookingState(), and UpdateCookingStateOnStick().
|
protected |
DEPREACTED.
Definition at line 384 of file Cooking.c.
References COOKING_EQUIPMENT_CAULDRON, COOKING_EQUIPMENT_FRYINGPAN, COOKING_EQUIPMENT_POT, COOKING_INGREDIENT_LARD, GetItemTypeFromCargo(), and LIQUID_GASOLINE.
|
protected |
when cooking in gasoline, jump to drying state(will be burnt then)
Definition at line 408 of file Cooking.c.
References COOKING_EQUIPMENT_CAULDRON, COOKING_EQUIPMENT_FRYINGPAN, COOKING_EQUIPMENT_POT, COOKING_INGREDIENT_LARD, GetItemTypeFromCargo(), LIQUID_GASOLINE, TIME_WITH_SUPPORT_MATERIAL_COEF, and TIME_WITHOUT_SUPPORT_MATERIAL_COEF.
Referenced by CookWithEquipment().
|
protected |
Cooking data.
Definition at line 363 of file Cooking.c.
Referenced by GetCookingMethod(), GetCookingMethodWithTimeOverride(), and UpdateCookingState().
|
protected |
Definition at line 467 of file Cooking.c.
|
protected |
Definition at line 461 of file Cooking.c.
void ProcessItemToCook | ( | notnull ItemBase | pItem, |
ItemBase | cookingEquip, | ||
Param2< CookingMethodType, float > | pCookingMethod, | ||
out Param2< bool, bool > | pStateFlags ) |
state flags are in order: is_done, is_burned
enable cooking SoundEvent
update food
check for done state from baking (exclude Lard from baked items)
check for burned state
Definition at line 34 of file Cooking.c.
References AddTemperatureToItem(), PARAM_BURN_DAMAGE_COEF, and UpdateCookingState().
Referenced by CookWithEquipment().
|
protected |
Definition at line 302 of file Cooking.c.
|
protected |
Change food stage
Remove all modifiers
any foodstage without lard
any foodstage without lard
Definition at line 149 of file Cooking.c.
References AddTemperatureToItem(), Math::Clamp(), COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE, COOKING_FOOD_TIME_INC_VALUE, COOKING_INGREDIENT_LARD, COOKING_LARD_DECREASE_COEF, DecreaseCookedItemQuantity(), and GetItemTypeFromCargo().
Referenced by ProcessItemToCook().
|
protected |
Definition at line 235 of file Cooking.c.
References AddTemperatureToItem(), COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE, and DecreaseCookedItemQuantity().
Referenced by CookOnStick().
COOKING_EQUIPMENT_CAULDRON = Cauldron |
Definition at line 31 of file Cooking.c.
Referenced by GetCookingMethod(), and GetCookingMethodWithTimeOverride().
COOKING_EQUIPMENT_FRYINGPAN = FryingPan |
Definition at line 30 of file Cooking.c.
Referenced by GetCookingMethod(), and GetCookingMethodWithTimeOverride().
COOKING_EQUIPMENT_POT = Pot |
Definition at line 29 of file Cooking.c.
Referenced by GetCookingMethod(), and GetCookingMethodWithTimeOverride().
how many units from quantity of lard are remove at each stage
Definition at line 19 of file Cooking.c.
Referenced by UpdateCookingState(), and UpdateCookingStateOnStick().
time modifier used when using support material
Definition at line 17 of file Cooking.c.
Referenced by UpdateCookingState().
COOKING_INGREDIENT_LARD = Lard |
Definition at line 32 of file Cooking.c.
Referenced by GetCookingMethod(), GetCookingMethodWithTimeOverride(), and UpdateCookingState().
time increase when cooking a food
Definition at line 18 of file Cooking.c.
Referenced by UpdateCookingState().
Definition at line 23 of file Cooking.c.
Referenced by AddTemperatureToItem().
Definition at line 26 of file Cooking.c.
Referenced by CookWithEquipment().
Definition at line 27 of file Cooking.c.
Referenced by CookWithEquipment().
Definition at line 24 of file Cooking.c.
Referenced by AddDamageToItemByFire(), AddDamageToItemByFireEx(), and ProcessItemToCook().
enum CookingMethodType TIME_WITH_SUPPORT_MATERIAL_COEF = 1.0 |
Referenced by GetCookingMethodWithTimeOverride().
time modifier used when not using support material
Definition at line 15 of file Cooking.c.
Referenced by GetCookingMethodWithTimeOverride().