mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Core: replace Location.event with advancement property (#2871)
This commit is contained in:
@@ -253,10 +253,8 @@ def generate_itempool(world):
|
||||
region.locations.append(loc)
|
||||
|
||||
multiworld.push_item(loc, item_factory('Triforce', world), False)
|
||||
loc.event = True
|
||||
loc.locked = True
|
||||
|
||||
multiworld.get_location('Ganon', player).event = True
|
||||
multiworld.get_location('Ganon', player).locked = True
|
||||
event_pairs = [
|
||||
('Agahnim 1', 'Beat Agahnim 1'),
|
||||
@@ -273,7 +271,7 @@ def generate_itempool(world):
|
||||
location = multiworld.get_location(location_name, player)
|
||||
event = item_factory(event_name, world)
|
||||
multiworld.push_item(location, event, False)
|
||||
location.event = location.locked = True
|
||||
location.locked = True
|
||||
|
||||
|
||||
# set up item pool
|
||||
|
||||
@@ -1193,7 +1193,6 @@ def set_trock_key_rules(world, player):
|
||||
item = item_factory('Small Key (Turtle Rock)', world.worlds[player])
|
||||
location = world.get_location('Turtle Rock - Big Key Chest', player)
|
||||
location.place_locked_item(item)
|
||||
location.event = True
|
||||
toss_junk_item(world, player)
|
||||
|
||||
if world.accessibility[player] != 'locations':
|
||||
|
||||
Reference in New Issue
Block a user