Core: cleanup BaseClasses.Location

This is just cleanup and has virtually no performance impact.
This commit is contained in:
black-sliver
2022-08-04 14:10:58 +02:00
parent 04eef669f9
commit 181cc47079
3 changed files with 20 additions and 16 deletions

View File

@@ -207,10 +207,10 @@ def ShopSlotFill(world):
shops_per_sphere.append(current_shops_slots)
candidates_per_sphere.append(current_candidates)
for location in sphere:
if location.shop_slot is not None:
if isinstance(location, ALttPLocation) and location.shop_slot is not None:
if not location.shop_slot_disabled:
current_shops_slots.append(location)
elif not location.locked and not location.item.name in blacklist_words:
elif not location.locked and location.item.name not in blacklist_words:
current_candidates.append(location)
if cumu_weights:
x = cumu_weights[-1]