added ability to prevent resource collection if there is not enough if the bank, plus a few other fixes