Initial Take-Any implementation

This commit is contained in:
Kevin Cathcart
2018-03-22 23:18:40 -04:00
parent 28970c8649
commit 18533fc77d
4 changed files with 108 additions and 11 deletions

View File

@@ -63,6 +63,8 @@ class World(object):
self.can_take_damage = True
self.difficulty_requirements = None
self.fix_fake_world = True
self.dynamic_regions = []
self.dynamic_locations = []
self.spoiler = Spoiler(self)
self.lamps_needed_for_dark_rooms = 1
@@ -185,6 +187,9 @@ class World(object):
self._cached_locations.extend(region.locations)
return self._cached_locations
def clear_location_cache(self):
self._cached_locations = None
def get_unfilled_locations(self):
return [location for location in self.get_locations() if location.item is None]