Made some changes to dungeon code to allow for use on other planets.