DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл Cooking.c

См. исходные тексты.

Перечисления

enum  CookingMethodType {
  NONE = 0 , BAKING = 1 , BOILING = 2 , DRYING = 3 ,
  TIME = 4 , COUNT
}
 

Функции

void SetCookingUpdateTime (float val)
 
void ProcessItemToCook (notnull ItemBase pItem, ItemBase cookingEquip, Param2< CookingMethodType, float > pCookingMethod, out Param2< bool, bool > pStateFlags)
 
int CookWithEquipment (ItemBase cooking_equipment, float cooking_time_coef=1)
 
int CookOnStick (Edible_Base item_to_cook, float cook_time_inc)
 
int UpdateCookingState (Edible_Base item_to_cook, CookingMethodType cooking_method, ItemBase cooking_equipment, float cooking_time_coef)
 
int UpdateCookingStateOnStick (Edible_Base item_to_cook, float cook_time_inc)
 
void SmokeItem (Edible_Base item_to_cook, float cook_time_inc)
 
void TerminateCookingSounds (ItemBase pItem)
 
ItemBase GetItemTypeFromCargo (typename item_type, ItemBase cooking_equipment)
 Cooking data.
 
CookingMethodType GetCookingMethod (ItemBase cooking_equipment)
 DEPREACTED.
 
Param2< CookingMethodType, floatGetCookingMethodWithTimeOverride (ItemBase cooking_equipment)
 
Edible_Base GetFoodOnStick (ItemBase stick_item)
 
float GetTimeToCook (Edible_Base item_to_cook, CookingMethodType cooking_method)
 
float GetMinTempToCook (Edible_Base item_to_cook, CookingMethodType cooking_method)
 
void AddTemperatureToItem (ItemBase cooked_item, ItemBase cooking_equipment, float min_temperature)
 
void DecreaseCookedItemQuantity (notnull Edible_Base pItem, float pAmount=0.0)
 

Переменные

enum CookingMethodType TIME_WITH_SUPPORT_MATERIAL_COEF = 1.0
 
static const float TIME_WITHOUT_SUPPORT_MATERIAL_COEF = 2.0
 time modifier used when not using support material
 
static const float COOKING_FOOD_TIME_INC_VALUE = 2
 time modifier used when using support material
 
static const float COOKING_LARD_DECREASE_COEF = 25
 time increase when cooking a food
 
static const float COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE = 25
 how many units from quantity of lard are remove at each stage
 
static const float COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_LARD = 0
 how many units from quantity of item are removed at each FoodStage change when support material is NOT used
 
static const float DEFAULT_COOKING_TEMPERATURE = 150
 NOT USED.
 
static const float FOOD_MAX_COOKING_TEMPERATURE = 150
 
static const float PARAM_BURN_DAMAGE_COEF = 0.05
 
static const float LIQUID_BOILING_POINT = 150
 
static const float LIQUID_VAPOR_QUANTITY = 2
 
 COOKING_EQUIPMENT_POT = Pot
 
 COOKING_EQUIPMENT_FRYINGPAN = FryingPan
 
 COOKING_EQUIPMENT_CAULDRON = Cauldron
 
 COOKING_INGREDIENT_LARD = Lard
 
float m_UpdateTime = 1
 

Перечисления

◆ CookingMethodType

Элементы перечислений
NONE 
BAKING 
BOILING 
DRYING 
TIME 
COUNT 
2{
3 NONE = 0, //no cooking method available
4 BAKING = 1,
5 BOILING = 2,
6 DRYING = 3,
7 TIME = 4,
8
10}
@ COUNT
Definition Cooking.c:9
@ BAKING
Definition Cooking.c:4
@ DRYING
Definition Cooking.c:6
@ BOILING
Definition Cooking.c:5
@ NONE
Definition Cooking.c:3
@ TIME
Definition Cooking.c:7

Функции

◆ AddTemperatureToItem()

void AddTemperatureToItem ( ItemBase cooked_item,
ItemBase cooking_equipment,
float min_temperature )
protected
519 {
520 if (!GetGame().IsServer())
521 return;
522
523 if (cooked_item == cooking_equipment) //solves direct cooking double heating
524 return;
525
526 if (cooked_item.CanHaveTemperature())
527 {
528 float itemTemp = cooked_item.GetTemperature();
529 //set target temperature
530 float targetTemp = DEFAULT_COOKING_TEMPERATURE; //default for direct attachments (direct cooking slots, smoking...)
532 targetTemp = cooking_equipment.GetTemperature();
533
534 //adjust temperature
535 if (targetTemp != itemTemp)
536 {
537 float heatPermCoef = 1.0;
539 heatPermCoef = cooking_equipment.GetHeatPermeabilityCoef();
540 heatPermCoef *= cooked_item.GetHeatPermeabilityCoef();
541 float tempCoef;
542
543 if (itemTemp < min_temperature && targetTemp > itemTemp) //heating 'catch-up' only
545 else
547
549 }
550 }
551 }
static const float DEFAULT_COOKING_TEMPERATURE
NOT USED.
Definition Cooking.c:22
float m_UpdateTime
Definition Cooking.c:34
ETemperatureAccessTypes
Definition TemperatureAccessConstants.c:2
Definition constants.c:638
Definition EntityAI.c:95
proto native CGame GetGame()
const float TEMP_COEF_COOKING_CATCHUP
Definition constants.c:906
const float TEMP_COEF_COOKING_DEFAULT
Definition constants.c:907

Перекрестные ссылки DEFAULT_COOKING_TEMPERATURE, GetGame(), m_UpdateTime, GameConstants::TEMP_COEF_COOKING_CATCHUP и GameConstants::TEMP_COEF_COOKING_DEFAULT.

Используется в ProcessItemToCook(), UpdateCookingState() и UpdateCookingStateOnStick().

◆ CookOnStick()

int CookOnStick ( Edible_Base item_to_cook,
float cook_time_inc )
protected
176 {
177 if ( item_to_cook && item_to_cook.CanBeCookedOnStick() )
178 {
179 //update food
181 }
182
183 return 0;
184 }
int UpdateCookingStateOnStick(Edible_Base item_to_cook, float cook_time_inc)
Definition Cooking.c:274

Перекрестные ссылки UpdateCookingStateOnStick().

◆ CookWithEquipment()

int CookWithEquipment ( ItemBase cooking_equipment,
float cooking_time_coef = 1 )
protected

cooking time coef override

101 {
102 bool is_empty;
103
104 //check cooking conditions
105 if (cooking_equipment == null)
106 {
107 return 0;
108 }
109
110 if (cooking_equipment.IsRuined())
111 {
112 return 0;
113 }
114
115 //manage items in cooking equipment
116 Param2<bool, bool> stateFlags = new Param2<bool, bool>(false, false); // 1st - done; 2nd - burned
118
120 if (cooking_time_coef != 1)
121 {
123 }
124
125 CargoBase cargo = cooking_equipment.GetInventory().GetCargo();
126 if (cargo)
127 {
128 is_empty = cargo.GetItemCount() == 0;
129
130 //process items
131 for (int i = 0; i < cargo.GetItemCount(); i++)
132 {
134 }
135 }
136 else
137 {
139 }
140
141 //manage cooking equipment
143 if (bottle_base)
144 {
145 float cookingEquipmentTemp = bottle_base.GetTemperature();
146 int liquidType = bottle_base.GetLiquidType();
147
148 //handle water boiling
149 if (liquidType != LIQUID_NONE && cookingEquipmentTemp >= Liquid.GetBoilThreshold(liquidType))
150 {
151 //remove agents
152 bottle_base.RemoveAllAgentsExcept(eAgents.HEAVYMETAL);
153
154 //vaporize liquid
155 if (bottle_base.IsItemOverheated())
157 }
158
159 //handle audio visuals
161 bottle_base.RefreshAudioVisualsOnClient(cookingMethodWithTime.param1, stateFlags.param1, is_empty, stateFlags.param2);
162 }
163
165 if (frying_pan && !bottle_base)
166 {
167 //handle audio visuals
168 frying_pan.RefreshAudioVisualsOnClient(cookingMethodWithTime.param1, stateFlags.param1, is_empty, stateFlags.param2);
169 }
170
171 return 1;
172 }
COOKING_EQUIPMENT_CAULDRON
Definition Cooking.c:31
void ProcessItemToCook(notnull ItemBase pItem, ItemBase cookingEquip, Param2< CookingMethodType, float > pCookingMethod, out Param2< bool, bool > pStateFlags)
Definition Cooking.c:41
Param2< CookingMethodType, float > GetCookingMethodWithTimeOverride(ItemBase cooking_equipment)
Definition Cooking.c:452
static const float LIQUID_VAPOR_QUANTITY
Definition Cooking.c:27
COOKING_EQUIPMENT_POT
Definition Cooking.c:29
eAgents
Definition EAgents.c:3
Definition Canteen.c:2
represents base for cargo storage for entities
Definition Cargo.c:7
Definition FryingPan.c:2
Definition InventoryItem.c:731
const int LIQUID_NONE
Definition constants.c:506

Перекрестные ссылки COOKING_EQUIPMENT_CAULDRON, COOKING_EQUIPMENT_POT, GetCookingMethodWithTimeOverride(), LIQUID_NONE, LIQUID_VAPOR_QUANTITY и ProcessItemToCook().

◆ DecreaseCookedItemQuantity()

void DecreaseCookedItemQuantity ( notnull Edible_Base pItem,
float pAmount = 0.0 )
protected
554 {
555 if (GetGame().IsServer())
556 {
557 float quantity = pItem.GetQuantity() - pAmount;
558 quantity = Math.Clamp(quantity, 0, pItem.GetQuantityMax());
559 pItem.SetQuantity(quantity);
560 }
561 }
Definition EnMath.c:7
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.

Перекрестные ссылки Math::Clamp() и GetGame().

Используется в UpdateCookingState() и UpdateCookingStateOnStick().

◆ GetCookingMethod()

CookingMethodType GetCookingMethod ( ItemBase cooking_equipment)
protected

DEPREACTED.

423 {
425 {
426 //has water, but not petrol dammit X)
427 if (cooking_equipment.GetQuantity() > 0 && cooking_equipment.GetLiquidType() != LIQUID_GASOLINE)
428 {
429 return CookingMethodType.BOILING;
430 }
431
432 //has lard in cargo
434 {
435 return CookingMethodType.BAKING;
436 }
437 return CookingMethodType.DRYING;
438 }
439
441 {
443 {
444 return CookingMethodType.BAKING;
445 }
446 return CookingMethodType.DRYING;
447 }
448
449 return CookingMethodType.NONE;
450 }
CookingMethodType
Definition Cooking.c:2
COOKING_INGREDIENT_LARD
Definition Cooking.c:32
COOKING_EQUIPMENT_FRYINGPAN
Definition Cooking.c:30
ItemBase GetItemTypeFromCargo(typename item_type, ItemBase cooking_equipment)
Cooking data.
Definition Cooking.c:401
const int LIQUID_GASOLINE
Definition constants.c:522

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

◆ GetCookingMethodWithTimeOverride()

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

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

453 {
455
456 switch (cooking_equipment.Type())
457 {
461 if (cooking_equipment.GetQuantity() > 0)
462 {
463 if (cooking_equipment.GetLiquidType() == LIQUID_GASOLINE)
464 {
467 break;
468 }
469
471 break;
472 }
473
475 {
476 //has lard in cargo, slower process
478 break;
479 }
480
481 if (cooking_equipment.GetInventory().GetCargo().GetItemCount() > 0)
482 {
484 break;
485 }
486
488 break;
489
490 default:
492 break;
493 }
494
495 return val;
496 }
enum CookingMethodType TIME_WITH_SUPPORT_MATERIAL_COEF
static const float TIME_WITHOUT_SUPPORT_MATERIAL_COEF
time modifier used when not using support material
Definition Cooking.c:15

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

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

◆ GetFoodOnStick()

Edible_Base GetFoodOnStick ( ItemBase stick_item)
protected
499 {
500 Edible_Base food_on_stick = Edible_Base.Cast( stick_item.GetAttachmentByType( Edible_Base ) );
501
502 return food_on_stick;
503 }
Definition Edible_Base.c:2

◆ GetItemTypeFromCargo()

ItemBase GetItemTypeFromCargo ( typename item_type ,
ItemBase cooking_equipment )
protected

Cooking data.

402 {
403 CargoBase cargo = cooking_equipment.GetInventory().GetCargo();
404 if (cargo)
405 {
406 for (int i = 0; i < cargo.GetItemCount(); i++)
407 {
408 EntityAI entity = cargo.GetItem(i);
409 if (entity.Type() == item_type)
410 {
412
413 return item;
414 }
415 }
416 }
417
418 return null;
419 }
Definition Building.c:6

Используется в GetCookingMethod(), GetCookingMethodWithTimeOverride() и UpdateCookingState().

◆ GetMinTempToCook()

float GetMinTempToCook ( Edible_Base item_to_cook,
CookingMethodType cooking_method )
protected
512 {
514 return FoodStage.GetCookingPropertyFromIndex( eCookingPropertyIndices.MIN_TEMP, food_stage_type, null, item_to_cook.GetType());
515 }
FoodStageType
Definition FoodStage.c:2

◆ GetTimeToCook()

float GetTimeToCook ( Edible_Base item_to_cook,
CookingMethodType cooking_method )
protected
506 {
508 return FoodStage.GetCookingPropertyFromIndex( eCookingPropertyIndices.COOK_TIME, food_stage_type, null, item_to_cook.GetType());
509 }

◆ ProcessItemToCook()

void ProcessItemToCook ( notnull ItemBase pItem,
ItemBase cookingEquip,
Param2< CookingMethodType, float > pCookingMethod,
out Param2< bool, bool > pStateFlags )
protected

state flags are in order: is_done, is_burned

update food

check for done state from baking (exclude Lard from baked items)

check for burned state

42 {
44
46 pStateFlags = new Param2<bool, bool>(false, false);
47
48 if (item_to_cook && item_to_cook.CanBeCooked())
49 {
52
53 //check for done state for boiling and drying
54 if (item_to_cook.IsFoodBoiled() || item_to_cook.IsFoodDried())
55 {
56 pStateFlags.param1 = true;
57 }
59 else if (item_to_cook.IsFoodBaked() && item_to_cook.Type() != Lard)
60 {
61 pStateFlags.param1 = true;
62 }
64 else if (item_to_cook.IsFoodBurned())
65 {
66 pStateFlags.param2 = true;
67 }
68 }
69 else
70 {
71 //add temperature to item
72 if (pItem != cookingEquip) //already handled by the fireplace directly!
74
75 //damage item that can actually overheat?
76 if (pItem.CanItemOverheat())
77 {
78 if (pItem.IsItemOverheated())
79 {
80 if (pItem.HasQuantity() && pItem.GetQuantityNormalized() > 0)
81 {
82 pItem.AddQuantity(-LIQUID_VAPOR_QUANTITY,!pItem.IsLiquidContainer()); //TODO: use other constant here, or calculate from qtyMax..
83 }
84 else
85 {
86 pItem.DecreaseHealth(PARAM_BURN_DAMAGE_COEF * 100);
87 }
88 }
89 }
90 else
91 {
92 pItem.DecreaseHealth(PARAM_BURN_DAMAGE_COEF * 100); //pItem.IsKindOf("Grenade_Base")
93 }
94 }
95 }
static const float PARAM_BURN_DAMAGE_COEF
Definition Cooking.c:24
int UpdateCookingState(Edible_Base item_to_cook, CookingMethodType cooking_method, ItemBase cooking_equipment, float cooking_time_coef)
Definition Cooking.c:187
void AddTemperatureToItem(ItemBase cooked_item, ItemBase cooking_equipment, float min_temperature)
Definition Cooking.c:518

Перекрестные ссылки AddTemperatureToItem(), LIQUID_VAPOR_QUANTITY, PARAM_BURN_DAMAGE_COEF и UpdateCookingState().

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

◆ SetCookingUpdateTime()

void SetCookingUpdateTime ( float val)
protected
37 {
39 }

Перекрестные ссылки m_UpdateTime.

◆ SmokeItem()

void SmokeItem ( Edible_Base item_to_cook,
float cook_time_inc )
protected
336 {
337 if (item_to_cook)
338 {
339 float new_cook_time = item_to_cook.GetCookingTime() + cook_time_inc;
340 float drying_cook_time = FoodStage.GetCookingPropertyFromIndex(eCookingPropertyIndices.COOK_TIME, FoodStageType.DRIED, null, item_to_cook.GetType());
341 float drying_cook_temp = FoodStage.GetCookingPropertyFromIndex(eCookingPropertyIndices.MIN_TEMP, FoodStageType.DRIED, null, item_to_cook.GetType());
342 float itemTemp = item_to_cook.GetTemperature();
343
345 {
346 switch (item_to_cook.GetFoodStageType())
347 {
348 case FoodStageType.RAW:
349 item_to_cook.SetCookingTime(new_cook_time);
350
351 if (item_to_cook.GetCookingTime() >= drying_cook_time)
352 {
353 item_to_cook.ChangeFoodStage(FoodStageType.DRIED);
354 item_to_cook.ResetCookingTime();
355 }
356 break;
357
358 default:
359 item_to_cook.SetCookingTime(new_cook_time);
360
361 if (item_to_cook.GetCookingTime() >= drying_cook_time)
362 {
363 item_to_cook.ChangeFoodStage(FoodStageType.BURNED);
364 item_to_cook.ResetCookingTime();
365 }
366 break;
367 }
368 }
369 }
370 }

◆ TerminateCookingSounds()

void TerminateCookingSounds ( ItemBase pItem)
protected
373 {
375 if (pItem)
376 {
377 CargoBase cargo = pItem.GetInventory().GetCargo();
378 if (cargo) // cookware
379 {
380 for (int i = 0; i < cargo.GetItemCount(); i++)
381 {
382 edible = Edible_Base.Cast(cargo.GetItem(i));
383 if (edible)
384 {
385 edible.MakeSoundsOnClient(false);
386 }
387 }
388 }
389 else
390 {
391 edible = Edible_Base.Cast(pItem);
392 if (edible)
393 {
394 edible.MakeSoundsOnClient(false);
395 }
396 }
397 }
398 }

◆ UpdateCookingState()

int UpdateCookingState ( Edible_Base item_to_cook,
CookingMethodType cooking_method,
ItemBase cooking_equipment,
float cooking_time_coef )
protected

enable cooking SoundEvent

Change food stage to new, IF DIFFERENT

any foodstage without lard

any foodstage without lard

188 {
189 //food properties
190 float food_temperature = item_to_cook.GetTemperature();
191
192 //{min_temperature, time_to_cook, max_temperature (optional)}
193 //get next stage name - if next stage is not defined, next stage name will be empty "" and no cooking properties (food_min_temp, food_time_to_cook, food_max_temp) will be set
195
196 float food_min_temp = 0;
197 float food_time_to_cook = 0;
198
199 //Set next stage cooking properties if next stage possible
200 if (item_to_cook.CanChangeToNewStage(cooking_method)) // new_stage_type != NONE
201 {
203 next_stage_cooking_properties = FoodStage.GetAllCookingPropertiesForStage(new_stage_type, null, item_to_cook.GetType());
204
205 food_min_temp = next_stage_cooking_properties.Get(eCookingPropertyIndices.MIN_TEMP); //checked after temperature is changed
207 }
208
209 //add temperature
211
212 //decrease qty of burned items (or cookable items that can't be burned)
213 if (item_to_cook.IsItemOverheated())
215
216 //add cooking time if the food can be cooked by this method
218 {
220 item_to_cook.MakeSoundsOnClient(true,cooking_method);
221
223 item_to_cook.SetCookingTime(new_cooking_time);
224
225 //progress to next stage
226 if (item_to_cook.GetCookingTime() >= food_time_to_cook)
227 {
229 if (item_to_cook.GetFoodStageType() != new_stage_type)
230 {
231 item_to_cook.ChangeFoodStage(new_stage_type);
232
234 {
235 if (cooking_method == CookingMethodType.BAKING)
236 {
238 if (lard)
239 {
240 //decrease lard quantity
241 float lardQuantity = lard.GetQuantity() - COOKING_LARD_DECREASE_COEF;
242 lardQuantity = Math.Clamp(lardQuantity, 0, lard.GetQuantityMax());
243 lard.SetQuantity(lardQuantity);
244 }
245 else
246 {
249 }
250 }
251 }
252 else
253 {
256 }
257 }
258
259 //reset cooking time
260 item_to_cook.ResetCookingTime();
261
262 return 1;
263 }
264 }
265 else
266 {
267 item_to_cook.MakeSoundsOnClient(false);
268 }
269
270 return 0;
271 }
static const float COOKING_FOOD_TIME_INC_VALUE
time modifier used when using support material
Definition Cooking.c:17
static const float COOKING_LARD_DECREASE_COEF
time increase when cooking a food
Definition Cooking.c:18
static const float COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE
how many units from quantity of lard are remove at each stage
Definition Cooking.c:19
void DecreaseCookedItemQuantity(notnull Edible_Base pItem, float pAmount=0.0)
Definition Cooking.c:553

Перекрестные ссылки AddTemperatureToItem(), Math::Clamp(), COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE, COOKING_FOOD_TIME_INC_VALUE, COOKING_INGREDIENT_LARD, COOKING_LARD_DECREASE_COEF, DecreaseCookedItemQuantity() и GetItemTypeFromCargo().

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

◆ UpdateCookingStateOnStick()

int UpdateCookingStateOnStick ( Edible_Base item_to_cook,
float cook_time_inc )
protected

Change food stage to new, IF DIFFERENT

275 {
276 //food properties
277 float food_temperature = item_to_cook.GetTemperature();
278
279 //{min_temperature, time_to_cook, max_temperature (optional)}
280 //get next stage name - if next stage is not defined, next stage name will be empty "" and no cooking properties (food_min_temp, food_time_to_cook, food_max_temp) will be set
281 FoodStageType new_stage_type = item_to_cook.GetNextFoodStageType( CookingMethodType.BAKING );
282 float food_min_temp = 0;
283 float food_time_to_cook = 0;
284 bool is_done = false; // baked
285 bool is_burned = false; // burned
286
287 //Set next stage cooking properties if next stage possible
288 if ( item_to_cook.CanChangeToNewStage( CookingMethodType.BAKING ) )
289 {
291 next_stage_cooking_properties = FoodStage.GetAllCookingPropertiesForStage( new_stage_type, null, item_to_cook.GetType() );
292
295 }
296
297 if (item_to_cook.GetInventory().IsAttachment())
298 {
299 //add temperature
301 }
302
303 //add cooking time if the food can be cooked by this method
305 {
306 //refresh audio
307 item_to_cook.MakeSoundsOnClient(true, CookingMethodType.BAKING);
308
309 float new_cooking_time = item_to_cook.GetCookingTime() + cook_time_inc;
310 item_to_cook.SetCookingTime( new_cooking_time );
311
312 //progress to next stage
313 if (item_to_cook.GetCookingTime() >= food_time_to_cook)
314 {
316 if (item_to_cook.GetFoodStageType() != new_stage_type)
317 {
318 item_to_cook.ChangeFoodStage(new_stage_type);
319
321 }
322 //reset cooking time
323 item_to_cook.ResetCookingTime();
324 return 1;
325 }
326 }
327 else
328 {
329 item_to_cook.MakeSoundsOnClient(false);
330 }
331
332 return 0;
333 }

Перекрестные ссылки AddTemperatureToItem(), COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE и DecreaseCookedItemQuantity().

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

Переменные

◆ COOKING_EQUIPMENT_CAULDRON

COOKING_EQUIPMENT_CAULDRON = Cauldron

◆ COOKING_EQUIPMENT_FRYINGPAN

COOKING_EQUIPMENT_FRYINGPAN = FryingPan

Используется в GetCookingMethod() и GetCookingMethodWithTimeOverride().

◆ COOKING_EQUIPMENT_POT

COOKING_EQUIPMENT_POT = Pot

◆ COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_LARD

const float COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_LARD = 0
static

how many units from quantity of item are removed at each FoodStage change when support material is NOT used

◆ COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE

const float COOKING_FOOD_QUANTITY_DECREASE_AMOUNT_NONE = 25
static

how many units from quantity of lard are remove at each stage

Используется в UpdateCookingState() и UpdateCookingStateOnStick().

◆ COOKING_FOOD_TIME_INC_VALUE

const float COOKING_FOOD_TIME_INC_VALUE = 2
static

time modifier used when using support material

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

◆ COOKING_INGREDIENT_LARD

COOKING_INGREDIENT_LARD = Lard

◆ COOKING_LARD_DECREASE_COEF

const float COOKING_LARD_DECREASE_COEF = 25
static

time increase when cooking a food

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

◆ DEFAULT_COOKING_TEMPERATURE

const float DEFAULT_COOKING_TEMPERATURE = 150
static

NOT USED.

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

◆ FOOD_MAX_COOKING_TEMPERATURE

const float FOOD_MAX_COOKING_TEMPERATURE = 150
static

◆ LIQUID_BOILING_POINT

const float LIQUID_BOILING_POINT = 150
static

◆ LIQUID_VAPOR_QUANTITY

const float LIQUID_VAPOR_QUANTITY = 2
static

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

◆ m_UpdateTime

float m_UpdateTime = 1
protected

Используется в AddTemperatureToItem() и SetCookingUpdateTime().

◆ PARAM_BURN_DAMAGE_COEF

const float PARAM_BURN_DAMAGE_COEF = 0.05
static

Используется в AddDamageToItemByFireEx() и ProcessItemToCook().

◆ TIME_WITH_SUPPORT_MATERIAL_COEF

enum CookingMethodType TIME_WITH_SUPPORT_MATERIAL_COEF = 1.0

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

◆ TIME_WITHOUT_SUPPORT_MATERIAL_COEF

const float TIME_WITHOUT_SUPPORT_MATERIAL_COEF = 2.0
static

time modifier used when not using support material

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