Greatly reduced number of items marked as never_excluded due to the performance implications it brings

This commit is contained in:
Jarno Westhof
2021-10-11 11:41:45 +02:00
committed by Fabian Dill
parent 78443bffac
commit 065931cae7
2 changed files with 41 additions and 43 deletions

View File

@@ -144,9 +144,7 @@ def create_item_with_correct_settings(world: MultiWorld, player: int, name: str)
data = item_table[name]
item = Item(name, data.progression, data.code, player)
if world.exclude_locations[player]: # Doubles performance to not set item exclusion when its not required
item.never_exclude = data.never_exclude
item.never_exclude = data.never_exclude
if not item.advancement:
return item