diff --git a/Plandomizer.py b/Plandomizer.py index 97a30cfc3..f99116632 100644 --- a/Plandomizer.py +++ b/Plandomizer.py @@ -799,7 +799,11 @@ def fill_bosses(self, world: World, prize_locs: list[Location], prizepool: list[ if record.player is not None and (record.player - 1) != self.id: raise RuntimeError('A boss can only give rewards in its own world') - valid_items = self.get_valid_items_from_record(prizepool, used_items, record) + valid_items = [] + if record.item == "#Vanilla": # Get vanilla item at this location from the location table + valid_items.append(location_table[name][4]) + else: # Do normal method of getting valid items for this location + valid_items = self.get_valid_items_from_record(prizepool, used_items, record) if valid_items: # Choices still available in the item pool, choose one, mark it as a used item record.item = random.choices(valid_items)[0] if used_items is not None: diff --git a/README.md b/README.md index 5eb4f2add..18df4e885 100644 --- a/README.md +++ b/README.md @@ -203,6 +203,7 @@ issue. You should always Hard Reset to avoid this issue entirely. * Gossip stone text colors are no longer specified in reverse order. * Music groups will now add to each other if you have multiple groups of the same name, instead of the last one simply overwriting the others. * The legacy starting items dictionary has been renamed to `starting_inventory` to make it more distinct from the new `starting_items` which is part of the Settings dictionary. +* The `#Vanilla` item category is now usable for dungeon rewards. ### 7.1 diff --git a/version.py b/version.py index 2ca7b27cf..9a10cebfc 100644 --- a/version.py +++ b/version.py @@ -1,4 +1,4 @@ -__version__ = '7.1.146' +__version__ = '7.1.147' # This is a supplemental version number for branches based off of main dev. supplementary_version = 0