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

◆ GetAgentsPerDigest()

static float Edible_Base::GetAgentsPerDigest ( ItemBase item,
string className = "",
int foodStage = 0 )
inlinestaticprotected

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

499 {
500 Edible_Base foodItem = Edible_Base.Cast(item);
501 if (foodItem && foodItem.GetFoodStage())
502 {
503 return FoodStage.GetAgentsPerDigest(foodItem.GetFoodStage());
504 }
505 else if (className != "" && foodStage)
506 {
507 return FoodStage.GetAgentsPerDigest(null, foodStage, className);
508 }
509 string classPath = string.Format("cfgVehicles %1 Nutrition", className);
510 return GetGame().ConfigGetInt(classPath + " agentsPerDigest");
511 }
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().