Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarno458 committed Nov 22, 2023
1 parent 5a2023f commit 261b45d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions worlds/timespinner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,15 @@ def get_excluded_items(self) -> Set[str]:
excluded_items.add('Modern Warp Beacon')
excluded_items.add('Mysterious Warp Beacon')

for item in self.multiworld.precollected_items[self.player]:
if item.name not in self.item_name_groups['UseItem']:
excluded_items.add(item.name)
for item_name in self.options.start_inventory.value.keys():
if item_name not in self.item_name_groups['UseItem']:
excluded_items.add(item_name)

return excluded_items

def assign_starter_items(self, excluded_items: Set[str]) -> None:
non_local_items: Set[str] = self.multiworld.non_local_items[self.player].value
local_items: Set[str] = self.multiworld.local_items[self.player].value
non_local_items: Set[str] = self.options.non_local_items.value
local_items: Set[str] = self.options.local_items.value

local_starter_melee_weapons = tuple(item for item in starter_melee_weapons if
item in local_items or not item in non_local_items)
Expand All @@ -274,16 +274,16 @@ def assign_starter_items(self, excluded_items: Set[str]) -> None:
self.assign_starter_item(excluded_items, 'Tutorial: Yo Momma 2', local_starter_spells)

def assign_starter_item(self, excluded_items: Set[str], location: str, item_list: Tuple[str, ...]) -> None:
item_name = self.multiworld.random.choice(item_list)
item_name = self.random.choice(item_list)

self.place_locked_item(excluded_items, location, item_name)

def place_first_progression_item(self, excluded_items: Set[str]) -> None:
if self.options.quick_seed or self.options.inverted or self.precalculated_weights.flood_lake_desolation:
return

for item in self.multiworld.precollected_items[self.player]:
if item.name in starter_progression_items and not item.name in excluded_items:
for item_name in self.options.start_inventory.value.keys():
if item_name in starter_progression_items:
return

local_starter_progression_items = tuple(
Expand Down

0 comments on commit 261b45d

Please sign in to comment.