diff --git a/src/__init__.py b/src/__init__.py index 59d6052..d6be3ee 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -105,7 +105,9 @@ def create_items(self): configured_item_names = self.item_id_to_name.copy() for name in configured_item_names.values(): + # victory gets placed via place_locked_item at the victory location in create_regions if name == "__Victory__": continue + # the game.json filler item name is added to the item lookup, so skip it until it's potentially needed later if name == filler_item_name: continue item = self.item_name_to_item[name] @@ -355,8 +357,10 @@ def adjust_filler_items(self, item_pool, traps): extra_item = self.create_item(self.random.choice(traps)) item_pool.append(extra_item) + filler_name_to_add = self.get_filler_item_name() + for _ in range(0, filler_count): - extra_item = self.create_item(filler_item_name) + extra_item = self.create_item(filler_name_to_add) item_pool.append(extra_item) elif extras < 0: logging.warning(f"{self.game} has more items than locations. {abs(extras)} non-progression items will be removed at random.")