mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
DLC Quest: Fix more items than location with non existing start inventory (#4735)
* DLC Quest Bug Fix Start inventory item that do not exist in the present world do not make more trap item to appear anymore * Update worlds/dlcquest/Items.py Co-authored-by: Mysteryem <Mysteryem@users.noreply.github.com> * DLC Quest Bug Fix did the recommendation of Mysteryem and made the item not exist in the pool of item created * DLC Quest Bug Fix did the recommendation of agilbert1412 and made a check by name instead of item to itemData * DLC Quest Bug Fix overcook failed test * DLC Quest Bug Fix re-type correctly a type hint --------- Co-authored-by: Mysteryem <Mysteryem@users.noreply.github.com>
This commit is contained in:
@@ -66,10 +66,10 @@ class DLCqworld(World):
|
||||
for location in self.multiworld.get_locations(self.player)
|
||||
if not location.advancement])
|
||||
|
||||
items_to_exclude = [excluded_items
|
||||
items_to_exclude = [excluded_items.name
|
||||
for excluded_items in self.multiworld.precollected_items[self.player]]
|
||||
|
||||
created_items = create_items(self, self.options, locations_count + len(items_to_exclude), self.multiworld.random)
|
||||
created_items = create_items(self, self.options, locations_count, items_to_exclude, self.multiworld.random)
|
||||
|
||||
self.multiworld.itempool += created_items
|
||||
|
||||
@@ -84,9 +84,7 @@ class DLCqworld(World):
|
||||
else:
|
||||
early_items[self.player]["Movement Pack"] = 1
|
||||
|
||||
for item in items_to_exclude:
|
||||
if item in self.multiworld.itempool:
|
||||
self.multiworld.itempool.remove(item)
|
||||
|
||||
|
||||
def precollect_coinsanity(self):
|
||||
if self.options.campaign == Options.Campaign.option_basic:
|
||||
|
||||
Reference in New Issue
Block a user