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

◆ GetFoodDigestibility()

static float Edible_Base::GetFoodDigestibility ( ItemBase item,
string classname = "",
int food_stage = 0 )
inlinestaticprotected

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

484 {
485 Edible_Base food_item = Edible_Base.Cast(item);
486 if (food_item && food_item.GetFoodStage())
487 {
488 return FoodStage.GetDigestibility(food_item.GetFoodStage());
489 }
490 else if (classname != "" && food_stage)
491 {
492 return FoodStage.GetDigestibility(null, food_stage, classname);
493 }
494 string class_path = string.Format("cfgVehicles %1 Nutrition", classname);
495 return GetGame().ConfigGetInt( class_path + " digestibility" );
496 }
proto native int ConfigGetInt(string path)
Get int value from config on path.
void Edible_Base()
Определения Edible_Base.c:25
override FoodStage GetFoodStage()
Определения Edible_Base.c:361
proto native CGame GetGame()

Перекрестные ссылки CGame::ConfigGetInt(), Edible_Base(), GetFoodStage() и GetGame().

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