mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Greatly reduced number of items marked as never_excluded due to the performance implications it brings
This commit is contained in:

committed by
Fabian Dill

parent
78443bffac
commit
065931cae7
@@ -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
|
||||
|
Reference in New Issue
Block a user