diff --git a/BaseClasses.py b/BaseClasses.py index 77183be4..f9f9e2df 100644 --- a/BaseClasses.py +++ b/BaseClasses.py @@ -458,7 +458,10 @@ class World(object): for location in locations: if location.can_reach(state): sphere.add(location) - yield sphere + sphere_list = list(sphere) + sphere_list.sort(key=lambda location: location.name) + self.random.shuffle(sphere_list) + yield sphere_list if not sphere: if locations: yield locations # unreachable locations