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

◆ CheckRecipe()

bool CheckRecipe ( ItemBase item1,
ItemBase item2,
PlayerBase player )
protected

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

480 {
481 if (item1 == NULL || item2 == NULL)
482 {
483 Error("recipe invalid, at least one of the ingredients is NULL");
484 return false;
485 }
486
487 ItemBase item_in_hand = player.GetItemInHands();
488
489 if (!IsRecipeAnywhere() && (item1 != item_in_hand && item2 != item_in_hand))
490 {
491 return false;
492 }
493
494 m_IngredientsSorted[0] = item1;
495 m_IngredientsSorted[1] = item2;
496
498 {
499 return true;
500 }
501 return false;
502 }
bool CanDo(ItemBase ingredients[], PlayerBase player)
Определения RecipeBase.c:551
bool IsRecipeAnywhere()
Определения RecipeBase.c:105
bool CheckConditions(ItemBase sorted[])
Определения RecipeBase.c:429
ItemBase m_IngredientsSorted[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:30
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки RecipeBase::CanDo(), CheckConditions(), Error(), IsRecipeAnywhere() и m_IngredientsSorted.

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