290 {
291 if ( !itemA || !itemB )
292 {
293 return false;
294 }
295
298
300
302 if (result)
303 {
305 }
306
307 return result;
308 }
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