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

◆ GetFoodToxicity()

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

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

454 {
455 Edible_Base food_item = Edible_Base.Cast(item);
456 if (food_item && food_item.GetFoodStage())
457 {
458 return FoodStage.GetToxicity(food_item.GetFoodStage());
459 }
460 else if (classname != "" && food_stage)
461 {
462 return FoodStage.GetToxicity(null, food_stage, classname);
463 }
464 string class_path = string.Format("cfgVehicles %1 Nutrition", classname);
465 return GetGame().ConfigGetFloat( class_path + " toxicity" );
466 }
proto native float ConfigGetFloat(string path)
Get float value from config on path.
void Edible_Base()
Определения Edible_Base.c:25
override FoodStage GetFoodStage()
Определения Edible_Base.c:361
proto native CGame GetGame()

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

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