public static bool RemoveFabricForProject(GameObject obj, Sim actor, int amount)
        {
            List <IngredientFabric> list  = actor.Inventory.FindAll <IngredientFabric>(true);
            List <IngredientFabric> list2 = obj.Inventory.FindAll <IngredientFabric>(true);
            List <IngredientFabric> list3 = new List <IngredientFabric>();

            if (obj != null && obj.Inventory != null)
            {
                if (list2.Count + list.Count < amount)
                {
                    return(false);
                }
                list3.AddRange(list2);
                list3.AddRange(list);

                for (int j = 0; j < amount; j++)
                {
                    IngredientFabric fabric = list3[j];
                    if (!obj.Inventory.TryToRemove(fabric))
                    {
                        SewingTable.print("Lyralei's SewingTable: Couldn't add Fabric ingredient, Destroyed item.");
                        return(false);
                    }
                    list3.Remove(fabric);
                    SewingTable.print("Was able to remove fabric from table");
                }
            }
            return(false);
        }
        public override bool StacksWith(IGameObject other)
        {
            IngredientFabric ingredientFabric = other as IngredientFabric;

            if (ingredientFabric != null)
            {
                return(true);
            }
            return(false);
        }