updated the calculations for the getResourcePrice(ResourceType type)