building costs rock/wood, function for removing X amount of item from inventory