Example #1
0
    public bool notifyWhenWorkInventoryRunningLow()
    {
        if (work)
        {
            if (work.getItemCurrentlyProduced() != null)
            {
                Dictionary <string, int> itemsNeeded = work.getListOfProductionItemsBasedOnTransferThresholds();

                if (!work.getBuildingInventory().checkIfListOfItemsAreInInventory(itemsNeeded))
                {
                    return(true);
                }
            }
        }
        return(false);
    }