given its lack of atmosphere , the planet was bombarded by a constant assault of cosmic radiation , but as the starherders work progressed , a magnetic field developed at the planets poles , which diverted a large amount of this energy away from the surface , allowing the outer crust to stabilize .