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

◆ CheckRecipe()

bool RecipeBase::CheckRecipe ( ItemBase item1,
ItemBase item2,
PlayerBase player )
inlineprotected

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

456 {
457 if (item1 == NULL || item2 == NULL)
458 {
459 Error("recipe invalid, at least one of the ingredients is NULL");
460 return false;
461 }
462
463 ItemBase item_in_hand = player.GetItemInHands();
464
465 if (!IsRecipeAnywhere() && (item1 != item_in_hand && item2 != item_in_hand))
466 {
467 return false;
468 }
469
470 m_IngredientsSorted[0] = item1;
471 m_IngredientsSorted[1] = item2;
472
474 {
475 return true;
476 }
477 return false;
478 }
class GP5GasMask extends MaskBase ItemBase
bool IsRecipeAnywhere()
Определения RecipeBase.c:89
bool CanDo(ItemBase ingredients[], PlayerBase player)
Определения RecipeBase.c:537
ItemBase m_IngredientsSorted[MAX_NUMBER_OF_INGREDIENTS]
Определения RecipeBase.c:14
bool CheckConditions(ItemBase sorted[])
Определения RecipeBase.c:405
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

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

Используется в PluginRecipesManagerBase::CheckRecipe(), PluginRecipesManagerBase::GetValidRecipesProper() и PerformRecipe().