changed functions to allow supplies and depots to be linked to a specific resource type