Subtract resource when a building is created