about summary refs log tree commit diff stats
path: root/apworld/options.py
blob: d984beb45aa68b11891c5000bc649823db82136a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffc
from dataclasses import dataclass

from Options import PerGameCommonOptions, Toggle, Choice


class ShuffleDoors(Toggle):
    """If enabled, most doors will open from receiving an item rather than fulfilling the in-game requirements."""
    display_name = "Shuffle Doors"


class VictoryCondition(Choice):
    """Victory condition."""
    display_name = "Victory Condition"
    option_gray_ending = 0
    option_purple_ending = 1
    option_mint_ending = 2
    option_black_ending = 3
    option_blue_ending = 4
    option_cyan_ending = 5
    option_red_ending = 6
    option_plum_ending = 7
    option_orange_ending = 8
    option_gold_ending = 9
    option_yellow_ending = 10
    option_green_ending = 11
    option_white_ending = 12


@dataclass
class Lingo2Options(PerGameCommonOptions):
    shuffle_doors: ShuffleDoors
    victory_condition: VictoryCondition