-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptions.py
More file actions
247 lines (193 loc) · 6.85 KB
/
Copy pathOptions.py
File metadata and controls
247 lines (193 loc) · 6.85 KB
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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
from dataclasses import dataclass
from Options import Choice, PerGameCommonOptions, StartInventoryPool, Toggle, Range, DefaultOnToggle, \
OptionSet, DeathLink
class IncludedAreas(OptionSet):
"""
Select which areas will have their locations included in the randomization pool.
Each selected area's stages and checks will be accessible in your world.
Unselected areas will not be included in the location pool.
Mountain is always available and cannot be excluded.
"""
display_name = "Included Areas"
valid_keys = ["Castle", "Town", "Ice", "Battlefield"]
default = ["Castle", "Town", "Ice", "Battlefield"]
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(DefaultOnToggle):
"""
Obelisks will be added to the random pool as items.
Activating all the obelisks in an area will unlock access to the next.
Disabling this will lock obelisks in their original locations.
"""
display_name = "Obelisks"
class MirrorShards(DefaultOnToggle):
"""
Mirror Shards will be added to the random pool as items.
Collecting all four mirror shards will unlock access to the Desecrated Temple.
Disabling this will lock mirror shards in their original locations.
"""
display_name = "Mirror Shards"
class Portals(DefaultOnToggle):
"""
Level portals will be added to the random pool as items.
Getting a portal item will unlock access to that level.
Levels will no longer unlock in succession when clearing the previous level.
"""
display_name = "Portals"
class Goal(Choice):
"""
Choose your objective required to goal.
Defeat Skorne: Collect all 13 stones to unlock and defeat Skorne in the Underworld.
Defeat X Bosses: Defeat X number of bosses to goal.
"""
display_name = "Goal"
option_defeat_skorne = 1
option_defeat_x_bosses = 2
default = 1
class BossGoalCount(Range):
"""
Choose how many bosses you must defeat to goal if 'Defeat X Bosses' is selected as your goal.
This includes both Temple and Underworld Skorne.
"""
display_name = "Boss Goal Count"
range_start = 1
range_end = 6
default = 4
class MaxDifficulty(Range):
"""
Select the difficulty value you want to be the maximum.
This will affect the amount of checks in each level as well as enemy strength and number of spawners.
"""
display_name = "Max Difficulty Value"
range_start = 1
range_end = 4
default = 4
class InstantMaxDifficulty(DefaultOnToggle):
"""
All stages will load with their max difficulty on the first run through.
By default, stages increase in difficulty by 1 at a set interval that changes per zone.
The starting level for each zone 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 more keys than you could ever use.
"""
display_name = "Infinite Keys"
class IncludedTraps(OptionSet):
"""
Choose what traps will be put in the item pool.
Valid Keys: Death, Poison Fruit, Crossbow Shooter, Bomb Thrower, Bomb Runner, Golem
"""
display_name = "Included Traps"
valid_keys = ["Death", "Poison Fruit", "Crossbow Shooter", "Bomb Thrower", "Bomb Runner", "Golem"]
default = ["Death", "Poison Fruit", "Crossbow Shooter", "Bomb Thrower", "Bomb Runner", "Golem"]
class TrapsFrequency(Range):
"""
Choose the frequency of traps added into the item pool
This range is a percentage of all items in the pool that will be traps.
"""
display_name = "Trap Frequency"
range_start = 0
range_end = 75
default = 10
class LocalFillerFrequency(Range):
"""
Choose the frequency of filler items that will be placed locally in your world.
This range is a percentage of how many filler items will be locally placed before generation occurs.
"""
display_name = "Local Filler Frequency"
range_start = 0
range_end = 75
default = 50
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_jackal = 3
option_tigress = 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_jackal = 3
option_tigress = 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_jackal = 3
option_tigress = 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_jackal = 3
option_tigress = 4
option_sumner = 5
default = 0
@dataclass
class GLOptions(PerGameCommonOptions):
death_link: DeathLink
start_inventory_from_pool: StartInventoryPool
included_areas: IncludedAreas
chests_barrels: ChestBarrels
obelisks: Obelisks
mirror_shards: MirrorShards
portals: Portals
goal: Goal
boss_goal_count: BossGoalCount
max_difficulty: MaxDifficulty
instant_max: InstantMaxDifficulty
infinite_keys: InfiniteKeys
permanent_speed: PermaSpeed
included_traps: IncludedTraps
traps_frequency: TrapsFrequency
local_filler_frequency: LocalFillerFrequency
unlock_character_one: UnlockCharacterOne
unlock_character_two: UnlockCharacterTwo
unlock_character_three: UnlockCharacterThree
unlock_character_four: UnlockCharacterFour