Validate gun numbers on loading object data. Factor out and normalize the logic for advancing to a robot's next gun.