Skip to content

Commit

Permalink
Initialize early generation lists for every world
Browse files Browse the repository at this point in the history
  • Loading branch information
wcolding committed Jun 9, 2024
1 parent 0e1e853 commit 81dd040
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class SWRWorld(World):
"invitational": {"Invitational Circuit Pass", "Invitational Course Unlock"}
}

racers_pool = racers_table
racers_pool = dict(racers_table)
starting_racers_flag = 0
randomized_courses = Dict[int, int]
randomized_course_data = list()
Expand All @@ -61,6 +61,7 @@ class SWRWorld(World):
local_item_count = 0

def set_starting_racers(self):
self.racers_pool = dict(racers_table)
if self.options.starting_racers == 0:
# Vanilla
for racer in vanilla_racers_list:
Expand All @@ -76,6 +77,9 @@ def set_starting_racers(self):
self.starting_racers_flag |= self.racers_pool.pop(selected_racer).bitflag

def randomize_courses(self):
self.randomized_courses = Dict[int, int]
self.randomized_course_data = list()
self.randomized_course_names = list()
self.randomized_courses = {}
course_clears = [*course_clears_table]
course_names = [*courses_table]
Expand Down

0 comments on commit 81dd040

Please sign in to comment.