-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOptions.py
231 lines (182 loc) · 6.06 KB
/
Options.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
from dataclasses import dataclass
from Options import Choice, PerGameCommonOptions, StartInventoryPool, Toggle, Range
class PlayerCount(Range):
"""
Select how many players will be playing this world locally.
If 3 players will be active then change this to 3, etc.
"""
display_name = "Local Players"
range_start = 1
range_end = 4
default = 1
class ChestBarrels(Choice):
"""
Choose how you want Chests and Barrels to be randomized.
None: Neither Chests nor Barrels will be added as locations.
All Chests: Chests will be added as locations, Barrels will not.
All Barrels: Barrels will be added as locations, Chests will not.
All Both: Both Chests and Barrels will be added as locations.
"""
display_name = "Chests and Barrels"
option_none = 0
option_all_chests = 1
option_all_barrels = 2
option_all_both = 3
default = 3
class Obelisks(Choice):
"""
Choose how you want Obelisks to be randomized.
None: Obelisks will be placed in their own locations.
All Obelisks: Obelisks will be shuffled into the item pool.
"""
display_name = "Obelisks"
option_none = 0
option_all_obelisks = 1
default = 1
class MirrorShards(Choice):
"""
Choose how you want Mirror Shards to be randomized.
None: Mirror Shards will be placed in their own locations.
All Shards: Mirror Shards will be shuffled into the item pool.
"""
display_name = "Mirror Shards"
option_none = 0
option_all_shards = 1
default = 1
class MaxDifficultyToggle(Toggle):
"""
Set all stages to have a maximum difficulty.
All locations with a difficulty higher than what is set will be excluded from the pool of locations.
Default max difficulty is 4.
"""
display_name = "Change Max Difficulty"
class MaxDifficultyRange(Range):
"""
Select the difficulty value you want to be the maximum.
This does nothing if Change Max Difficulty is set to false.
This value has a minimum based on how many local players you have.
If you have 3 local players, this will be adjusted to be at least 3.
"""
display_name = "Max Difficulty Value"
range_start = 1
range_end = 4
default = 4
class InstantMaxDifficulty(Toggle):
"""
All stages will load with their max difficulty on the first run through.
By default, stages increase in difficulty by 1 every 5 player levels.
The starting level for each area increases gradually as you would progress in vanilla.
"""
display_name = "Instant Max Difficulty"
class PermaSpeed(Toggle):
"""
You will be given speed boots with a permanent duration.
"""
display_name = "Permanent Speed Boots"
class InfiniteKeys(Toggle):
"""
You will be given an absurd amount of keys.
"""
display_name = "Infinite Keys"
class TrapsChoice(Choice):
"""
Choose what traps will be put in the item pool.
All Active: Both Death and Poison Fruit will be added to the item pool.
Only Death: Death will be added to the item pool.
Only Fruit: Poison Fruit will be added to the item pool.
None Active: No Traps will be added to the item pool.
"""
display_name = "Active Traps"
option_all_active = 0
option_only_death = 1
option_only_fruit = 2
option_none_active = 3
default = 0
class TrapsFrequency(Choice):
"""
Choose the frequency of traps added into the item pool
Normal: 75 of each selected trap are added into the item pool.
Large: 150 of each selected trap are added into the item pool.
Extreme: 375 of each selected trap are added into the item pool.
"""
display_name = "Trap Frequency"
option_normal = 0
option_large = 1
option_extreme = 2
default = 0
class DeathLink(Toggle):
"""
When you die, everyone dies. Of course the reverse is true too.
"""
display_name = "Death Link"
class UnlockCharacterOne(Choice):
"""
Unlock a secret character for Player 1 from the start.
None: No secret characters will be unlocked.
Chosen Character: The selected character will be available from a new save.
"""
option_none = 0
option_minotaur = 1
option_falconess = 2
option_tigress = 3
option_jackal = 4
option_sumner = 5
default = 0
class UnlockCharacterTwo(Choice):
"""
Unlock a secret character for Player 2 from the start.
None: No secret characters will be unlocked.
Chosen Character: The selected character will be available from a new save.
"""
option_none = 0
option_minotaur = 1
option_falconess = 2
option_tigress = 3
option_jackal = 4
option_sumner = 5
default = 0
class UnlockCharacterThree(Choice):
"""
Unlock a secret character for Player 3 from the start.
None: No secret characters will be unlocked.
Chosen Character: The selected character will be available from a new save.
"""
option_none = 0
option_minotaur = 1
option_falconess = 2
option_tigress = 3
option_jackal = 4
option_sumner = 5
default = 0
class UnlockCharacterFour(Choice):
"""
Unlock a secret character for Player 4 from the start.
None: No secret characters will be unlocked.
Chosen Character: The selected character will be available from a new save.
"""
option_none = 0
option_minotaur = 1
option_falconess = 2
option_tigress = 3
option_jackal = 4
option_sumner = 5
default = 0
@dataclass
class GLOptions(PerGameCommonOptions):
start_inventory_from_pool: StartInventoryPool
local_players: PlayerCount
chests_barrels: ChestBarrels
obelisks: Obelisks
mirror_shards: MirrorShards
max_difficulty_toggle: MaxDifficultyToggle
max_difficulty_value: MaxDifficultyRange
instant_max: InstantMaxDifficulty
infinite_keys: InfiniteKeys
permanent_speed: PermaSpeed
traps_choice: TrapsChoice
traps_frequency: TrapsFrequency
death_link: DeathLink
unlock_character_one: UnlockCharacterOne
unlock_character_two: UnlockCharacterTwo
unlock_character_three: UnlockCharacterThree
unlock_character_four: UnlockCharacterFour