diff --git a/Dolphin scripts/Entrance Randomizer/lib/entrance_rando.py b/Dolphin scripts/Entrance Randomizer/lib/entrance_rando.py index 2650e86..a19f378 100644 --- a/Dolphin scripts/Entrance Randomizer/lib/entrance_rando.py +++ b/Dolphin scripts/Entrance Randomizer/lib/entrance_rando.py @@ -14,7 +14,7 @@ class NoConnectionFoundError(Exception): - """Raised when the algorithm fails to find a valid connection to break open""" + """Raised when the algorithm fails to find a valid connection to break open.""" class Transition(NamedTuple): diff --git a/Dolphin scripts/Entrance Randomizer/lib/graph_creation.py b/Dolphin scripts/Entrance Randomizer/lib/graph_creation.py index 8e4c99f..e0d397a 100644 --- a/Dolphin scripts/Entrance Randomizer/lib/graph_creation.py +++ b/Dolphin scripts/Entrance Randomizer/lib/graph_creation.py @@ -50,11 +50,11 @@ class LineType(IntEnum): def create_own_style(params: dict): output_text = ' ownStyles="{"0":{' first_key = True - for key in params: - if params[key] is not None: + for key, value in params.items(): + if value is not None: if not first_key: output_text += ", " - output_text += f""{key}":"{params[key]}"" + output_text += f""{key}":"{value}"" first_key = False output_text += '}}"' return output_text