297 {
298 if ( !itemA || !itemB )
299 {
300 return false;
301 }
302
305
307
309 if (result)
310 {
312 }
313
314 return result;
315 }
ItemBase m_sortedIngredients[MAX_NUMBER_OF_INGREDIENTS]
bool CheckRecipe(int id, ItemBase item1, ItemBase item2, PlayerBase player)
bool RecipeSanityCheck(int num_of_ingredients, InventoryItemBase items[], PlayerBase player)
ItemBase m_Ingredients[MAX_INGREDIENTS]
bool SortIngredientsInRecipe(int id, int num_of_ingredients, ItemBase ingredients_unsorted[], ItemBase ingredients_sorted[])
sorts ingredients correctly as either first or second ingredient based on their masks