This commit is contained in:
Fabian Dill
2022-04-01 03:32:17 +02:00
committed by Fabian Dill
parent 199b778d2b
commit 65864e273b
2 changed files with 8 additions and 4 deletions

View File

@@ -2,9 +2,10 @@ import typing
from .ExtractedData import logic_options, starts, pool_options
from Options import Option, DefaultOnToggle, Toggle, Choice, Range
locations = {"option_" + start: i for i, start in enumerate(starts)}
# This way the dynamic start names are picked up by the MetaClass Choice belongs to
StartLocation = type("StartLocation", (Choice,), {
"option_" + start: i for i, start in enumerate(starts)} | {"auto_display_name": False})
StartLocation = type("StartLocation", (Choice,), {"auto_display_name": False, **locations})
del (locations)
default_on = {
"RandomizeDreamers",