mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
MultiServer: remove legacy datapackage keys
MultiServer: remove warning about legacy datapackage use MultiServer: remove legacy permission flags Options: add "random" option to all Choices LttP: remove random special handling from HeartColor
This commit is contained in:
@@ -137,10 +137,8 @@ class Choice(Option):
|
||||
@classmethod
|
||||
def from_text(cls, text: str) -> Choice:
|
||||
text = text.lower()
|
||||
# TODO: turn on after most people have adjusted their yamls to no longer have suboptions with "random" in them
|
||||
# maybe in 0.2?
|
||||
# if text == "random":
|
||||
# return cls(random.choice(list(cls.options.values())))
|
||||
if text == "random":
|
||||
return cls(random.choice(list(cls.name_lookup)))
|
||||
for optionname, value in cls.options.items():
|
||||
if optionname == text:
|
||||
return cls(value)
|
||||
|
Reference in New Issue
Block a user