-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathOptions.py
More file actions
586 lines (485 loc) · 16.6 KB
/
Copy pathOptions.py
File metadata and controls
586 lines (485 loc) · 16.6 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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
from Options import Range, StartInventoryPool, PerGameCommonOptions, Choice, FreeText, Toggle, DeathLink, \
DefaultOnToggle, OptionList
from dataclasses import dataclass
class Goal(Choice):
"""
This determines the goal of the game.
shadow_queen: Defeat the Shadow Queen.
crystal_stars: Collect a specified amount of Crystal Stars.
bonetail: Defeat Bonetail.
"""
display_name = "Goal"
option_shadow_queen = 1
option_crystal_stars = 2
option_bonetail = 3
default = 1
class GoalStars(Range):
"""
This determines how many crystal stars are required to enter the Throne Room in the Palace of Shadow.
This also determines how many stars are required to goal with the crystal_stars goal selected.
"""
display_name = "Goal Crystal Stars"
range_start = 1
range_end = 7
default = 7
class PalaceStars(Range):
"""
This determines how many Crystal Stars are required to enter the Palace of Shadow.
"""
display_name = "Palace Crystal Stars"
range_start = 0
range_end = 7
default = 7
class RequiredStarsToggle(Toggle):
"""
Toggles the Required Stars setting.
This will force the stars selected in Required Stars to be needed to enter the Palace of Shadow.
Leaving this off will cause the stars needed to be chosen randomly.
"""
display_name = "Required Stars Selection"
class RequiredStars(OptionList):
"""
Select which stars are required to enter the Palace of Shadow.
If you do not toggle this option the stars will be chosen randomly.
If this has more stars in it than goal stars required, it will use the ones that come first in the list.
If this has fewer stars in it than goal stars required, it will fill the rest in randomly.
"""
display_name = "Required Stars"
valid_keys = ["Diamond Star", "Emerald Star", "Gold Star", "Ruby Star", "Sapphire Star", "Garnet Star", "Crystal Star"]
default = valid_keys
def verify(self, world, player_name: str, plando_options) -> None:
super().verify(world, player_name, plando_options)
seen = set()
unique = []
for star in self.value:
if star not in seen:
seen.add(star)
unique.append(star)
self.value = unique
class StarShuffle(Choice):
"""
Crystal Stars will be added as items to the item pool.
vanilla: Crystal Stars will remain in their original locations.
stars_only: Crystal Stars will be shuffled into other crystal star locations.
all: Crystal Stars will be shuffled into any location.
"""
display_name = "Star Shuffle"
option_vanilla = 1
option_stars_only = 2
option_all = 3
default = 1
class PitItems(Choice):
"""
This determines what type of items are in the Pit of 100 Trials.
vanilla: The locations contain the same items as the original game, and the locations themselves will not be created.
filler: The locations will be marked as excluded.
all: The locations can contain any item.
"""
display_name = "Pit Items"
option_vanilla = 0
option_filler = 1
option_all = 2
default = 1
class TattleSanityOption(Toggle):
"""
Creates a location for every enemy being tattled.
All key items can possibly be placed in these locations.
"""
display_name = "Tattlesanity"
class Piecesanity(Choice):
"""
Determines if Star Piece locations will be randomized.
vanilla: Star Piece locations will remain in their original locations.
nonpanel_only: Only Star Pieces that are not in panels will be randomized.
all: All Star Pieces will be randomized.
"""
display_name = "Star Piecesanity"
option_vanilla = 0
option_nonpanel_only = 1
option_all = 2
default = 1
class Shopsanity(DefaultOnToggle):
"""
Shop items will be randomized.
This only includes regular shops.
"""
display_name = "Shopsanity"
class ShopPurchaseLimit(Choice):
"""
This determines which items in the shop will be replenished infinitely when purchasing.
infinite: All non-progression items in shops can be purchased infinitely.
consumables_only: Only consumable items can be purchased infinitely.
badges_only: Only badges can be purchased infinitely.
limited: No items can be purchased infinitely.
"""
display_name = "Shop Purchase Limit"
option_infinite = 0
option_consumables_only = 1
option_badges_only = 2
option_limited = 3
default = 1
class Shinesanity(DefaultOnToggle):
"""
Shine Sprites will be randomized.
"""
display_name = "Shinesanity"
class Keysanity(DefaultOnToggle):
"""
Chapter specific keys will be added to the item pool.
Disabling this will place the keys in their own chapters dungeon.
"""
display_name = "Keysanity"
class DazzleRewards(Choice):
"""
This determines what type of items are given as rewards by Dazzle.
vanilla: The rewards are the same as the original game.
filler: The rewards will be non-progression items.
all: The rewards can be any item.
"""
display_name = "Dazzle Rewards"
option_vanilla = 1
option_filler = 2
option_all = 3
default = 3
class StartingPartner(Choice):
"""
Choose the partner that you start with.
This settings will not be applied if partner shuffle is set to Vanilla.
"""
display_name = "Starting Partner"
option_goombella = 1
option_koops = 2
option_bobbery = 3
option_yoshi = 4
option_flurrie = 5
option_vivian = 6
option_ms_mowz = 7
default = 1
class LimitChapterLogic(Toggle):
"""
Progression items will only appear in required chapters, and in common areas. You will not need to
check the chapters that are out of logic whatsoever. You can still visit them for local items (badges, consumables, etc) if you want or need to.
"""
display_name = "Limit Chapter Logic"
class LimitChapterEight(Toggle):
"""
All chapter 8 keys items will be placed in vanilla locations.
All other locations will have local non-progression items.
"""
display_name = "Limit Chapter 8"
class BluePipeToggle(DefaultOnToggle):
"""
Toggle whether the blue pipes in Rogueport Sewers are usable.
Disabling this will remove the blue switches and the pipes will become inaccessible.
"""
display_name = "Blue Pipe Warp"
class PalaceSkip(Toggle):
"""
Entering the Thousand-Year door will take you straight to Grodus.
"""
display_name = "Palace Skip"
class CutsceneSkip(Toggle):
"""
Skips some of the longer cutscenes in the game,
such as the Shadow Queen cutscene, Fahr Outpost Cannon etc.
"""
display_name = "Skip Cutscenes"
class OpenWestside(Toggle):
"""
Rogueport Westside is open from the start.
"""
display_name = "Open West Side"
class GrubbaBribeDirection(Choice):
"""
Sets how bribing grubba behaves in-game.
Set if you want grubba to require coins for moving up or down the rankings respectively.
up_rank_only: Grubba accepts coins to move up the rankings. (20 -> 1). Moving down is free.
down_rank_only: Grubba accepts coins bribes to move down the rankings. (1 -> 20). Moving up is free.
both_directions: Grubba accepts coins for moving both up and down the rankings.
"""
display_name = "Grubba Bribe Direction"
option_up_rank_only = 0
option_down_rank_only = 1
option_both_directions = 2
default = 2
class GrubbaBribeCost(Range):
"""
Sets the cost to bribe Grubba to move up the rankings.
Grubba can be found in his office after your first battle in the glitz pit.
"""
display_name = "Grubba Bribe Cost"
range_start = 0
range_end = 50
default = 20
class EnemyRandomizer(Choice):
"""
Toggles the randomization of enemies in battles.
vanilla: Enemies will be the same as the original game.
within_chapter: Enemy encounters will be shuffled with other encounters that appear in the same chapter.
random: Enemy encounters will be shuffled with any other encounter in the game.
"""
display_name = "Enemy Randomizer"
option_vanilla = 0
option_within_chapter = 1
option_randomize = 2
default = 0
class EncounterShuffleType(Choice):
"""
This determines how enemies are grouped when randomizing.
Enemy randomizer must be set to either within_chapter or random for this option to have an effect.
vanilla_groups: Enemies will be grouped by encounter, and shuffled as a group.
custom_groups: Enemies will be shuffled individually, and grouped into new encounters based on their new enemy count.
"""
display_name = "Enemy Randomizer Grouping"
option_vanilla_groups = 0
option_custom_groups = 1
default = 0
class EnemyStatScaling(Toggle):
"""
Enemies will have their stats scaled based on the chapter they appear in.
This option is independent of the Enemy Randomizer option, and will scale enemies even if they are not randomized.
"""
display_name = "Enemy Stat Scaling"
class ShuffleChapterStats(Toggle):
"""
Chapter stat scaling values will be shuffled between each other.
EnemyStatScaling must be enabled for this option to have an effect.
ie. Chapter 1 enemies could have scaled stats based on chapter 5,
Chapter 2 enemies could have scaled stats based on chapter 3, etc.
"""
display_name = "Shuffle Chapter Stats"
class PermanentPeekaboo(Toggle):
"""
The Peekaboo badge is always active, even when not equipped.
"""
display_name = "Permanent Peekaboo"
class FullRunBar(Toggle):
"""
The run bar in battle always starts at 100 percent.
"""
display_name = "Full Run Bar"
class DisableIntermissions(Toggle):
"""
After obtaining a crystal star, mario will stay in the boss' room,
and the sequence will be updated past the intermission.
"""
display_name = "Disable Intermissions"
class FastTravel(Toggle):
"""
Enable this to gain the ability to warp to any area you have visited from the map
screen in the main menu. Press A on the destination to open the warp confirmation dialog.
"""
display_name = "Fast Travel"
class AlwaysSucceedConditions(Toggle):
"""
Enable this to make it so the battle condition in fights in the Glitz Pit
will always be fulfilled, regardless of their actual fulfillment.
"""
display_name = "Always Succeed Conditions"
class ZeroBPFirstAttack(Toggle):
"""
The First Attack badge costs 0 BP, just like the remake.
"""
display_name = "0 BP First Attack"
class BadgeBP(Choice):
"""
Change the BP cost of all badges.
This will not affect badges with unique costs such as First Attack, Power Bounce, etc.
vanilla: All badges will have their normal BP cost.
shuffled: All badges will have their BP cost shuffled among each other.
random_costs: All badges will have a random BP cost between 0 and 6.
"""
display_name = "Badge BP Cost"
option_vanilla = 0
option_shuffled = 1
option_random_costs = 2
default = 0
class BadgeFP(Choice):
"""
Change the FP cost of all badges.
This will not affect badges with unique costs such as Refresh, etc.
vanilla: All badges will have their normal FP cost.
shuffled: All badges will have their FP cost shuffled among each other.
random_costs: All badges will have a random FP cost between 0 and 6.
"""
display_name = "Badge FP Cost"
option_vanilla = 0
option_shuffled = 1
option_random_costs = 2
default = 0
class PartnerFP(Choice):
"""
Change the FP cost of all partners.
This will not affect partners with unique costs such as Vivian, etc.
vanilla: All partner abilities will have their normal FP cost.
shuffled: All partner abilities will have their FP cost shuffled among each other.
random_costs: All partner abilities will have a random FP cost between 0 and 6.
"""
display_name = "Partner FP Cost"
option_vanilla = 0
option_shuffled = 1
option_random_costs = 2
default = 0
class MusicSettings(Choice):
"""
Choose in-game music settings.
normal: Music will not change.
silent: No music will play at all.
randomized: Music will be randomized.
"""
display_name = "Music Settings"
option_normal = 0
option_silent = 1
option_randomized = 2
default = 0
class BlockVisibility(Choice):
"""
Choose how visible item blocks are.
normal: All blocks will keep their vanilla visibility.
all_visible: All blocks will be visible.
"""
display_name = "Block Visibility"
option_normal = 0
option_all_visible = 1
default = 1
class ExperienceMultiplier(Range):
"""
Multiplies the experience you gain from battles.
"""
display_name = "Experience Multiplier"
range_start = 0
range_end = 10
default = 1
class StartingHP(Range):
"""
How much health you start with.
"""
display_name = "Starting HP"
range_start = 1
range_end = 100
default = 10
class StartingFP(Range):
"""
How much flower points you start with.
"""
display_name = "Starting FP"
range_start = 0
range_end = 100
default = 5
class StartingBP(Range):
"""
How many badge points you start with.
"""
display_name = "Starting BP"
range_start = 0
range_end = 99
default = 3
class StartingLevel(Range):
"""
What level you start at.
"""
display_name = "Starting Level"
range_start = 1
range_end = 99
default = 1
class StartingCoins(Range):
"""
How many coins you start with.
"""
display_name = "Starting Coins"
range_start = 0
range_end = 999
default = 100
class YoshiColor(Choice):
"""
Select the color of your Yoshi partner.
"""
display_name = "Yoshi Color"
option_green = 0
option_red = 1
option_blue = 2
option_orange = 3
option_pink = 4
option_black = 5
option_white = 6
default = 0
class YoshiName(FreeText):
"""
Set the name of your Yoshi partner.
This has a maximum length of 8 characters.
"""
display_name = "Yoshi Name"
default = "Yoshi"
class ConsoleMode(Toggle):
"""
ONLY ENABLE THIS IF YOU WANT TO PLAY ON CONSOLE.
This will disable all Multiplayer features, and cause the game to be patched in a way that is compatible with console play.
The game may lose some functionality compared to the PC version when this is enabled, and is intended for users who want to play the mod on console solo.
"""
display_name = "Console Mode"
class MultiplayerToggle(DefaultOnToggle):
"""
Toggle multiplayer features on or off.
Turning this off means you will not see any other players in-game.
"""
display_name = "Multiplayer"
class RemoteItems(Toggle):
"""
Toggle Remote Items on or off.
Turning this on means all items including ones in your own world will be sent to you from the server.
All local items will be AP items.
"""
display_name = "Remote Items"
@dataclass
class TTYDOptions(PerGameCommonOptions):
death_link: DeathLink
start_inventory_from_pool: StartInventoryPool
console_mode: ConsoleMode
multiplayer: MultiplayerToggle
remote_items: RemoteItems
goal: Goal
goal_stars: GoalStars
palace_stars: PalaceStars
required_stars_toggle: RequiredStarsToggle
required_stars: RequiredStars
star_shuffle: StarShuffle
tattlesanity: TattleSanityOption
piecesanity: Piecesanity
shopsanity: Shopsanity
shop_purchase_limit: ShopPurchaseLimit
shinesanity: Shinesanity
keysanity: Keysanity
dazzle_rewards: DazzleRewards
pit_items: PitItems
limit_chapter_logic: LimitChapterLogic
limit_chapter_eight: LimitChapterEight
blue_pipe_toggle: BluePipeToggle
palace_skip: PalaceSkip
cutscene_skip: CutsceneSkip
disable_intermissions: DisableIntermissions
fast_travel: FastTravel
succeed_conditions: AlwaysSucceedConditions
open_westside: OpenWestside
grubba_bribe_direction: GrubbaBribeDirection
grubba_bribe_cost: GrubbaBribeCost
enemy_randomizer: EnemyRandomizer
encounter_shuffle_type: EncounterShuffleType
enemy_stat_scaling: EnemyStatScaling
shuffle_chapter_stats: ShuffleChapterStats
permanent_peekaboo: PermanentPeekaboo
full_run_bar: FullRunBar
first_attack: ZeroBPFirstAttack
badge_bp: BadgeBP
badge_fp: BadgeFP
partner_fp: PartnerFP
music_settings: MusicSettings
block_visibility: BlockVisibility
experience_multiplier: ExperienceMultiplier
starting_hp: StartingHP
starting_fp: StartingFP
starting_bp: StartingBP
starting_coins: StartingCoins
starting_level: StartingLevel
starting_partner: StartingPartner
yoshi_color: YoshiColor
yoshi_name: YoshiName