 The episode was written by Davies and Gareth Roberts . Roberts drew from several outside sources several parts of the plot , for example the allusion to the star of Wormwood from the Book of Revelation . Roberts also used the name of a beverage called " <unk> " in his novel The Highest Science for inspiration for Bubble Shock ! . 
