Specially placed Crystals need to be marked as events for sweep pickup.

This commit is contained in:
LLCoolDave 2017-07-18 00:05:46 +02:00
parent ef162aae54
commit 9105bd1a34
1 changed files with 2 additions and 0 deletions

View File

@ -494,6 +494,7 @@ def generate_itempool(world):
if world.get_entrance('Ganons Tower').connected_region.name == region:
# can't place a crystal here
world.push_item(world.get_location(crystallocation), crystals.pop(), False)
crystallocation.event = True
else:
crystal_locations.append(world.get_location(crystallocation))
else:
@ -508,6 +509,7 @@ def generate_itempool(world):
if world.get_entrance('Pyramid Fairy').connected_region.name == 'Dam':
crystallocation = crystal_locations.pop(crystal_locations.index(world.get_location('Arrghus - Crystal')))
world.push_item(world.get_location(crystallocation), crystals.pop(), False)
crystallocation.event = True
crystals.extend(ItemFactory(['Crystal 5', 'Crystal 6']))
random.shuffle(crystals)