Fix up TRock key rules. Should be good enough, may still prevent some valid fire rod/cane of somaria placements with shuffled entrances, but not a big deal I hope.

This commit is contained in:
LLCoolDave
2017-06-23 21:32:31 +02:00
parent 197b341940
commit 4ec20fa997
4 changed files with 52 additions and 21 deletions

View File

@@ -112,7 +112,7 @@ class World(object):
def find_items(self, item):
return [location for location in self.get_locations() if location.item is not None and location.item.name == item]
def push_item(self, location, item, collect=True):
def push_item(self, location, item, collect=True, do_not_sweep=False):
if not isinstance(location, Location):
location = self.get_location(location)
@@ -120,7 +120,7 @@ class World(object):
location.item = item
item.location = location
if collect:
self.state.collect(item, location.event)
self.state.collect(item, True if do_not_sweep else location.event)
logging.getLogger('').debug('Placed %s at %s' % (item, location))
else: