584 {
585 int count = 0;
586 int smallest = 9999;
587 int smallest_index = 0;
589
590
591
592
593
594
596
597 for (int i = 0; i < num_of_ingredients; i++)
598 {
600 if (!cobject)
601 {
602 return 0;
603 }
604 if (cobject.GetNumberOfRecipes() < smallest)
605 {
606 smallest = cobject.GetNumberOfRecipes();
607 smallest_index = i;
608 co_least_recipes = cobject;
609 }
610 }
611
612
613 array<int> recipes = co_least_recipes.GetRecipes();
614 for (
int x = 0;
x < recipes.Count();
x++)
615 {
616 int id = recipes.Get(
x);
617 for (int z = 0; z < num_of_ingredients; z++)
618 {
619 if ( z!= smallest_index)
620 {
622 if ( cobject2.IsContainRecipe(id) )
623 {
625 count++;
626 }
627 }
628 }
629 }
630 return count;
631 }
eBleedingSourceType GetType()
void PluginRecipesManager()
ref array< int > m_RecipesMatched