diff --git a/worlds/blasphemous/Options.py b/worlds/blasphemous/Options.py index e0bbcd77..2cb2d8a1 100644 --- a/worlds/blasphemous/Options.py +++ b/worlds/blasphemous/Options.py @@ -4,14 +4,17 @@ import random class ChoiceIsRandom(Choice): - randomized: bool = False + randomized: bool + + def __init__(self, value: int, randomized: bool = False): + super().__init__(value) + self.randomized = randomized @classmethod def from_text(cls, text: str) -> Choice: text = text.lower() if text == "random": - cls.randomized = True - return cls(random.choice(list(cls.name_lookup))) + return cls(random.choice(list(cls.name_lookup)), True) for option_name, value in cls.options.items(): if option_name == text: return cls(value)