508 {
509 if (item1 == NULL || item2 == NULL)
510 {
511 Error(
"PerformRecipe: recipe invalid, at least one of the ingredients is NULL");
512 Debug.Log(
"PerformRecipe: at least one of the ingredients is NULL",
"recipes");
513 }
514
516 {
517 array<ItemBase> spawned_objects = new array<ItemBase>;
519
522
524
526 }
527 else
528 {
529 Debug.Log(
"CheckRecipe failed on server",
"recipes");
530 }
531 }
void SpawnItems(ItemBase ingredients[], PlayerBase player, array< ItemBase > spawned_objects)
void DeleleIngredientsPass()
void Do(ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
ItemBase m_IngredientsSorted[MAX_NUMBER_OF_INGREDIENTS]
void ApplyModificationsIngredients(ItemBase sorted[], PlayerBase player)
void ApplyModificationsResults(ItemBase sorted[], array< ItemBase > results, ItemBase result, PlayerBase player)
bool CheckRecipe(ItemBase item1, ItemBase item2, PlayerBase player)
void Error(string err)
Messagebox with error message.