Fixed issue with Prize Shuffle not adding prize locations to district locations
This commit is contained in:
@@ -2651,7 +2651,7 @@ class Location(object):
|
|||||||
self.recursion_count = 0
|
self.recursion_count = 0
|
||||||
self.staleness_count = 0
|
self.staleness_count = 0
|
||||||
self.locked = False
|
self.locked = False
|
||||||
self.real = not prize
|
self.real = True
|
||||||
self.always_allow = lambda item, state: False
|
self.always_allow = lambda item, state: False
|
||||||
self.access_rule = lambda state: True
|
self.access_rule = lambda state: True
|
||||||
self.verbose_rule = None
|
self.verbose_rule = None
|
||||||
|
|||||||
@@ -1240,11 +1240,12 @@ def adjust_locations(world, player):
|
|||||||
index += 1
|
index += 1
|
||||||
setup_enemy_locations(world, player)
|
setup_enemy_locations(world, player)
|
||||||
# disable forced prize locations
|
# disable forced prize locations
|
||||||
if world.prizeshuffle[player] != 'none':
|
prize_on_boss = world.prizeshuffle[player] == 'none'
|
||||||
for l in [name for name, data in location_table.items() if data[2]]:
|
for l in [name for name, data in location_table.items() if data[2]]:
|
||||||
location = world.get_location_unsafe(l, player)
|
location = world.get_location_unsafe(l, player)
|
||||||
if location:
|
if location:
|
||||||
location.prize = False
|
location.prize = prize_on_boss
|
||||||
|
location.real = not prize_on_boss
|
||||||
# unreal events:
|
# unreal events:
|
||||||
for l in ['Ganon', 'Zelda Pickup', 'Zelda Drop Off'] + list(location_events):
|
for l in ['Ganon', 'Zelda Pickup', 'Zelda Drop Off'] + list(location_events):
|
||||||
location = world.get_location_unsafe(l, player)
|
location = world.get_location_unsafe(l, player)
|
||||||
|
|||||||
Reference in New Issue
Block a user