about summary refs log tree commit diff stats
path: root/apworld/options.py
diff options
context:
space:
mode:
Diffstat (limited to 'apworld/options.py')
-rw-r--r--apworld/options.py55
1 files changed, 52 insertions, 3 deletions
diff --git a/apworld/options.py b/apworld/options.py index f72e826..3646eea 100644 --- a/apworld/options.py +++ b/apworld/options.py
@@ -1,9 +1,9 @@
1from dataclasses import dataclass 1from dataclasses import dataclass
2 2
3from Options import PerGameCommonOptions, Toggle, Choice 3from Options import PerGameCommonOptions, Toggle, Choice, DefaultOnToggle, Range
4 4
5 5
6class ShuffleDoors(Toggle): 6class ShuffleDoors(DefaultOnToggle):
7 """If enabled, most doors will open from receiving an item rather than fulfilling the in-game requirements.""" 7 """If enabled, most doors will open from receiving an item rather than fulfilling the in-game requirements."""
8 display_name = "Shuffle Doors" 8 display_name = "Shuffle Doors"
9 9
@@ -16,6 +16,11 @@ class ShuffleControlCenterColors(Toggle):
16 display_name = "Shuffle Control Center Colors" 16 display_name = "Shuffle Control Center Colors"
17 17
18 18
19class ShuffleGalleryPaintings(Toggle):
20 """If enabled, gallery paintings will appear from receiving an item rather than by triggering them normally."""
21 display_name = "Shuffle Gallery Paintings"
22
23
19class ShuffleLetters(Choice): 24class ShuffleLetters(Choice):
20 """ 25 """
21 Controls how letter unlocks are handled. Note that H1, I1, N1, and T1 will always be present at their vanilla 26 Controls how letter unlocks are handled. Note that H1, I1, N1, and T1 will always be present at their vanilla
@@ -87,8 +92,40 @@ class DaedalusRoofAccess(Toggle):
87 display_name = "Allow Daedalus Roof Access" 92 display_name = "Allow Daedalus Roof Access"
88 93
89 94
95class StrictPurpleEnding(DefaultOnToggle):
96 """
97 If enabled, the player will be required to have all purple (level 1) letters in order to get Purple Ending.
98 Otherwise, some of the letters may be skippable depending on the other options.
99 """
100 display_name = "Strict Purple Ending"
101
102
103class StrictCyanEnding(DefaultOnToggle):
104 """
105 If enabled, the player will be required to have all cyan (level 2) letters in order to get Cyan Ending. Otherwise,
106 at least J2, Q2, and V2 are skippable. Others may also be skippable depending on the options chosen.
107 """
108 display_name = "Strict Cyan Ending"
109
110
90class VictoryCondition(Choice): 111class VictoryCondition(Choice):
91 """Victory condition.""" 112 """
113 This option determines what your goal is.
114
115 - **Gray Ending** (The Colorful)
116 - **Purple Ending** (The Sun Temple). This ordinarily requires all level 1 (purple) letters.
117 - **Mint Ending** (typing EXIT into the keyholders in Control Center)
118 - **Black Ending** (The Graveyard)
119 - **Blue Ending** (The Words)
120 - **Cyan Ending** (The Parthenon). This ordinarily requires almost all level 2 (cyan) letters.
121 - **Red Ending** (The Tower)
122 - **Plum Ending** (The Wondrous / The Door)
123 - **Orange Ending** (the castle in Daedalus)
124 - **Gold Ending** (The Gold). This involves going through the color rooms in Daedalus.
125 - **Yellow Ending** (The Gallery). This requires unlocking all gallery paintings.
126 - **Green Ending** (The Ancient). This requires filling all keyholders with specific letters.
127 - **White Ending** (Control Center). This combines every other ending.
128 """
92 display_name = "Victory Condition" 129 display_name = "Victory Condition"
93 option_gray_ending = 0 130 option_gray_ending = 0
94 option_purple_ending = 1 131 option_purple_ending = 1
@@ -105,13 +142,25 @@ class VictoryCondition(Choice):
105 option_white_ending = 12 142 option_white_ending = 12
106 143
107 144
145class TrapPercentage(Range):
146 """Replaces junk items with traps, at the specified rate."""
147 display_name = "Trap Percentage"
148 range_start = 0
149 range_end = 100
150 default = 0
151
152
108@dataclass 153@dataclass
109class Lingo2Options(PerGameCommonOptions): 154class Lingo2Options(PerGameCommonOptions):
110 shuffle_doors: ShuffleDoors 155 shuffle_doors: ShuffleDoors
111 shuffle_control_center_colors: ShuffleControlCenterColors 156 shuffle_control_center_colors: ShuffleControlCenterColors
157 shuffle_gallery_paintings: ShuffleGalleryPaintings
112 shuffle_letters: ShuffleLetters 158 shuffle_letters: ShuffleLetters
113 shuffle_symbols: ShuffleSymbols 159 shuffle_symbols: ShuffleSymbols
114 keyholder_sanity: KeyholderSanity 160 keyholder_sanity: KeyholderSanity
115 cyan_door_behavior: CyanDoorBehavior 161 cyan_door_behavior: CyanDoorBehavior
116 daedalus_roof_access: DaedalusRoofAccess 162 daedalus_roof_access: DaedalusRoofAccess
163 strict_purple_ending: StrictPurpleEnding
164 strict_cyan_ending: StrictCyanEnding
117 victory_condition: VictoryCondition 165 victory_condition: VictoryCondition
166 trap_percentage: TrapPercentage