См. определение в файле 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
496
498 {
499 return true;
500 }
501 return false;
502 }
bool CanDo(ItemBase ingredients[], PlayerBase player)
bool CheckConditions(ItemBase sorted[])
ItemBase m_IngredientsSorted[MAX_NUMBER_OF_INGREDIENTS]
void Error(string err)
Messagebox with error message.
Перекрестные ссылки RecipeBase::CanDo(), CheckConditions(), Error(), IsRecipeAnywhere() и m_IngredientsSorted.
Используется в PerformRecipe().