374 {
375
377 {
379
381 {
383 }
384 else
385 {
387 {
389 ingredient.AddHealth("","",health_delta);
390 }
392 {
394 ingredient.SetHealth("","",new_health);
395 }
397 {
399
400 if (!ingredient.IsMagazine())
401 {
403 bool isDestroyed = obj.AddQuantity(quantity_delta, true);
404 if (isDestroyed)
405 {
406 continue;
407 }
408 }
409 else
410 {
411 Magazine mag = Magazine.Cast(ingredient);
412 int newQuantity = mag.GetAmmoCount() + quantity_delta;
413 if (newQuantity <= 0)
414 {
416 continue;
417 }
418 else
419 {
420 mag.ServerSetAmmoCount(newQuantity);
421 }
422 }
423 }
424 }
425 }
426 }
float m_IngredientAddHealth[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientSetHealth[MAX_NUMBER_OF_INGREDIENTS]
ref array< ItemBase > m_IngredientsToBeDeleted
float m_IngredientAddQuantity[MAX_NUMBER_OF_INGREDIENTS]
bool m_IngredientDestroy[MAX_NUMBER_OF_INGREDIENTS]
const int MAX_NUMBER_OF_INGREDIENTS