mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
LADX: fix modifying item pool in pre_fill (#2060)
This commit is contained in:
@@ -276,6 +276,11 @@ class LinksAwakeningWorld(World):
|
|||||||
# Properly fill locations within dungeon
|
# Properly fill locations within dungeon
|
||||||
location.dungeon = r.dungeon_index
|
location.dungeon = r.dungeon_index
|
||||||
|
|
||||||
|
# For now, special case first item
|
||||||
|
FORCE_START_ITEM = True
|
||||||
|
if FORCE_START_ITEM:
|
||||||
|
self.force_start_item()
|
||||||
|
|
||||||
def force_start_item(self):
|
def force_start_item(self):
|
||||||
start_loc = self.multiworld.get_location("Tarin's Gift (Mabe Village)", self.player)
|
start_loc = self.multiworld.get_location("Tarin's Gift (Mabe Village)", self.player)
|
||||||
if not start_loc.item:
|
if not start_loc.item:
|
||||||
@@ -287,17 +292,12 @@ class LinksAwakeningWorld(World):
|
|||||||
start_item = self.multiworld.itempool.pop(index)
|
start_item = self.multiworld.itempool.pop(index)
|
||||||
start_loc.place_locked_item(start_item)
|
start_loc.place_locked_item(start_item)
|
||||||
|
|
||||||
|
|
||||||
def get_pre_fill_items(self):
|
def get_pre_fill_items(self):
|
||||||
return self.pre_fill_items
|
return self.pre_fill_items
|
||||||
|
|
||||||
def pre_fill(self) -> None:
|
def pre_fill(self) -> None:
|
||||||
allowed_locations_by_item = {}
|
allowed_locations_by_item = {}
|
||||||
|
|
||||||
# For now, special case first item
|
|
||||||
FORCE_START_ITEM = True
|
|
||||||
if FORCE_START_ITEM:
|
|
||||||
self.force_start_item()
|
|
||||||
|
|
||||||
# Set up filter rules
|
# Set up filter rules
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user