Fixed setgrav so that it takes a percent expressed as an int instead of decimal