forked from AmazingAmpharos/OoT-Randomizer
-
Notifications
You must be signed in to change notification settings - Fork 233
/
SettingsList.py
5527 lines (5015 loc) · 195 KB
/
SettingsList.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
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
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
from __future__ import annotations
import difflib
import json
from collections.abc import Iterable
from typing import TYPE_CHECKING, Optional, Any
import Colors
from Hints import hint_dist_list, hint_dist_tips, gossipLocations
from Item import ItemInfo
from Location import LocationIterator
from LocationList import location_table
from Models import get_model_choices
from SettingsListTricks import logic_tricks
from SettingTypes import SettingInfo, SettingInfoStr, SettingInfoList, SettingInfoDict, Textbox, Button, Checkbutton, \
Combobox, Radiobutton, Fileinput, Directoryinput, Textinput, ComboboxInt, Scale, Numberinput, MultipleSelect, \
SearchBox
import Sounds
import StartingItems
from Utils import data_path
if TYPE_CHECKING:
from Entrance import Entrance
# Old/New name of a setting
class Setting_Info_Versioning:
def __init__(self, old_name, new_name):
self.old_name = old_name # old name of the setting
self.new_name = new_name # new name of the setting
settings_versioning = [
Setting_Info_Versioning(
old_name = '',
new_name = '',
),
]
class SettingInfos:
# Internal & Non-GUI Settings
aliases = SettingInfoList(None, None, False)
cosmetics_only = Checkbutton(None)
check_version = Checkbutton(None)
checked_version = SettingInfoStr(None, None)
output_settings = Checkbutton(None)
patch_without_output = Checkbutton(None)
generating_patch_file = Checkbutton(None)
output_file = SettingInfoStr(None, None)
seed = SettingInfoStr(None, None)
# GUI Only Buttons/Text
output_types = Textbox(
gui_text = "Output Types",
)
open_output_dir = Button(
gui_text = "Open Output Directory",
gui_params = {
'function': "openOutputDir",
'no_line_break': True,
},
)
open_python_dir = Button(
gui_text = "Open App Directory",
gui_params = {
'function': "openPythonDir",
},
)
tricks_list_msg = Textbox(
gui_text = "Your current logic setting does not support the enabling of tricks.",
gui_params = {
"hide_when_disabled": True,
},
)
model_unavailable_msg = Textbox(
gui_text = "Models can only be customized when patching.",
gui_params = {
"hide_when_disabled": True,
},
)
sfx_link_unavailable_msg = Textbox(
gui_text = "Link's Voice can only be customized when patching.",
gui_params = {
"hide_when_disabled": True
},
)
custom_music_unavailable_msg = Textbox(
gui_text = "Custom music can only be added when patching.",
gui_params = {
"hide_when_disabled": True,
},
)
# Web Only Settings
web_wad_file = Fileinput(
gui_text = "WAD File",
gui_tooltip = "Your original OoT 1.2 NTSC-U / NTSC-J WAD file (.wad)",
gui_params = {
"file_types": [
{
"name": "WAD Files",
"extensions": ["wad"]
},
{
"name": "All Files",
"extensions": ["*"]
},
],
"hide_when_disabled": True,
},
)
web_common_key_file = Fileinput(
gui_text = "Wii Common Key File",
gui_tooltip = """\
The Wii Common Key is a copyrighted 32 character string needed for WAD encryption.
Google to find it! Do not ask on Discord!
""",
gui_params = {
"file_types": [
{
"name": "BIN Files",
"extensions": ["bin"]
},
{
"name": "All Files",
"extensions": ["*"]
},
],
"hide_when_disabled": True,
},
)
web_common_key_string = Textinput(
gui_text = "Alternatively Enter Wii Common Key",
gui_tooltip = """\
The Wii Common Key is a copyrighted 32 character string needed for WAD encryption.
Google to find it! Do not ask on Discord!
""",
gui_params = {
"size": "full",
"max_length": 32,
"hide_when_disabled": True,
},
)
web_wad_channel_id = Textinput(
gui_text = "WAD Channel ID",
default = "NICE",
gui_tooltip = """\
4 characters, should end with E to ensure Dolphin compatibility.
Note: If you have multiple OoTR WAD files with different Channel IDs installed, the game can crash on a soft reset. Use a Title Deleter to remove old WADs.
""",
gui_params = {
"size": "small",
"max_length": 4,
"no_line_break": True,
"hide_when_disabled": True,
},
)
web_wad_channel_title = Textinput(
gui_text = "WAD Channel Title",
default = "OoTRandomizer",
gui_tooltip = "20 characters max",
gui_params = {
"size": "medium",
"max_length": 20,
"hide_when_disabled": True,
},
)
web_wad_legacy_mode = Checkbutton(
gui_text = 'WAD Legacy Mode',
default = False,
gui_tooltip = "Enabling this will avoid any patching of the VC emulator in case your Wii does not have support for it. Recommended to be left unchecked.",
gui_params = {
"no_line_break": False,
"hide_when_disabled": True,
},
)
web_output_type = Radiobutton(
gui_text = "Output Type",
choices = {
'z64': ".z64 (N64/Emulator)",
'wad': ".wad (WiiVC)",
},
gui_params = {
"hide_when_disabled": True,
},
default = "z64",
disable = {
'z64': {
'settings': [
'web_wad_file', 'web_common_key_file', 'web_common_key_string',
'web_wad_channel_id', 'web_wad_channel_title', 'web_wad_legacy_mode',
],
},
},
)
web_persist_in_cache = Checkbutton(
gui_text = 'Persist Files in Cache',
default = True,
)
# General Settings
generate_from_file = Checkbutton(
gui_text = 'Generate From Patch File',
default = False,
disable = {
True: {
'tabs': ['main_tab', 'detailed_tab', 'starting_tab', 'other_tab'],
'sections': ['preset_section'],
'settings': ['count', 'create_spoiler', 'world_count', 'enable_distribution_file', 'distribution_file', 'create_patch_file', 'show_seed_info', 'user_message'],
},
False: {
'settings': ['repatch_cosmetics'],
},
},
gui_params = {
'web:disable': {
False: {
'settings': [
'rom', 'web_output_type', 'player_num',
'web_wad_file', 'web_common_key_file', 'web_common_key_string',
'web_wad_channel_id', 'web_wad_channel_title', 'web_wad_legacy_mode',
'model_adult', 'model_child', 'model_adult_filepicker', 'model_child_filepicker',
'sfx_link_adult', 'sfx_link_child', 'custom_music_directorypicker'
],
},
True: {
'settings': [
'model_adult', 'model_child', 'model_unavailable_msg',
'sfx_link_unavailable_msg', 'custom_music_unavailable_msg'
],
},
},
'electron:disable': {
False: {
'settings': [
'model_adult_filepicker', 'model_child_filepicker', 'model_unavailable_msg',
'sfx_link_unavailable_msg', 'custom_music_directorypicker', 'custom_music_unavailable_msg'
],
},
True: {
'settings': [
'model_adult_filepicker', 'model_child_filepicker', 'model_unavailable_msg',
'sfx_link_unavailable_msg', 'custom_music_directorypicker', 'custom_music_unavailable_msg'
],
},
},
},
)
enable_distribution_file = Checkbutton(
gui_text = 'Enable Plandomizer (Advanced)',
gui_tooltip = '''\
Optional. Use a plandomizer JSON file to get
total control over the item placement.
''',
gui_params = {
'no_line_break': True,
},
default = False,
disable = {
False: {'settings': ['distribution_file']},
},
shared = False,
)
enable_cosmetic_file = Checkbutton(
gui_text = 'Enable Cosmetic Plandomizer (Advanced)',
gui_tooltip = '''\
Optional. Use a cosmetic plandomizer JSON file to get
more control over your cosmetic and sound settings.
''',
default = False,
disable = {
False: {'settings': ['cosmetic_file']},
},
shared = False,
)
distribution_file = Fileinput(
gui_text = "Plandomizer File",
gui_tooltip = """\
Optional. Place a plandomizer JSON file here
to get total control over the item placement.
""",
gui_params = {
"file_types": [
{
"name": "JSON Files",
"extensions": ["json"]
},
{
"name": "All Files",
"extensions": ["*"]
},
],
"hide_when_disabled": True,
},
)
cosmetic_file = Fileinput(
gui_text = "Cosmetic Plandomizer File",
gui_tooltip = """\
Optional. Use a cosmetic plandomizer JSON file to get
more control over your cosmetic and sound settings.
""",
gui_params = {
"file_types": [
{
"name": "JSON Files",
"extensions": ["json"]
},
{
"name": "All Files",
"extensions": ["*"]
},
],
"hide_when_disabled": True,
},
)
rom = Fileinput(
gui_text = "Base ROM",
gui_params = {
"file_types": [
{
"name": "ROM Files",
"extensions": ["z64", "n64"]
},
{
"name": "All Files",
"extensions": ["*"]
},
],
"web:hide_when_disabled": True,
},
)
output_dir = Directoryinput(
gui_text = "Output Directory",
)
show_seed_info = Checkbutton(
gui_text = 'Show Seed Info on File Screen',
shared = True,
gui_tooltip = '''\
Display the version number, generation time, and user
message on the file screen.
''',
default = True,
disable = {
False: {'settings': ["user_message"]},
},
gui_params = {
"hide_when_disabled": True,
},
)
web_id = Numberinput(
gui_text = "Web Seed ID",
shared = False,
default = 0,
gui_params = {
'optional': True,
},
)
user_message = Textinput(
gui_text = "User-Configurable Message",
shared = True,
gui_tooltip = """\
Add a custom message to the seed info.
""",
default = "",
gui_params = {
"size": "full",
"max_length": 42,
"hide_when_disabled": True,
},
)
patch_file = Fileinput(
gui_text = "Patch File",
gui_params = {
"file_types": [
{
"name": "Patch File Archive",
"extensions": ["zpfz", "zpf", "patch"]
},
{
"name": "All Files",
"extensions": ["*"]
},
],
},
)
count = Numberinput(
gui_text = "Generation Count",
shared = False,
default = 1,
minimum = 1,
)
world_count = Numberinput(
gui_text = "Player Count",
shared = True,
default = 1,
minimum = 1,
maximum = 255,
gui_params = {
'no_line_break': True,
'web:max': 15,
'web:no_line_break': True,
},
)
player_num = Numberinput(
gui_text = "Player ID",
shared = False,
default = 1,
minimum = 1,
maximum = 255,
)
repatch_cosmetics = Checkbutton(
gui_text = 'Override Original Cosmetics',
default = True,
disable = {
False: {
'tabs': ['cosmetics_tab', 'sfx_tab'],
'settings': ['create_cosmetics_log', 'enable_cosmetic_file', 'cosmetic_file'],
},
},
shared = False,
)
create_spoiler = Checkbutton(
gui_text = 'Create Spoiler Log',
gui_tooltip = '''\
Enabling this will change the seed.
Warning: Only disable this if you don't want any help in solving this seed!
''',
default = True,
gui_params = {
'no_line_break': True,
'web:no_line_break': False,
},
shared = True,
)
create_cosmetics_log = Checkbutton(
gui_text = 'Create Cosmetics Log',
gui_tooltip = '''\
Cosmetics Logs are only output if one of the output types below are enabled.
''',
default = True,
disabled_default = False,
)
create_patch_file = Checkbutton(
gui_text = '.zpf (Patch File)',
gui_tooltip = '''\
Patch files are used to send the patched data to other
people without sending the ROM file.
''',
shared = False,
gui_params = {
"no_line_break": True,
},
)
create_compressed_rom = Checkbutton(
gui_text = '.z64 (N64/Emulator)',
default = True,
gui_tooltip = '''\
A "compressed" .z64 ROM file for use on
N64 emulators or with an N64 flash cart.
''',
shared = False,
gui_params = {
"no_line_break": True,
},
)
create_wad_file = Checkbutton(
gui_text = '.wad (Wii VC)',
gui_tooltip = '''\
.wad files are used to play on Wii Virtual Console or Dolphin Emulator.
''',
shared = False,
disable = {
False: {'settings': ['wad_file', 'wad_channel_title', 'wad_channel_id']},
},
gui_params = {
"no_line_break": True,
},
)
create_uncompressed_rom = Checkbutton(
gui_text = 'Uncompressed ROM (Development)',
gui_tooltip = '''\
Uncompressed ROMs may be helpful for developers
but should not be used to play through a seed
normally as it will very likely cause crashes.
Use a compressed ROM instead.
''',
shared = False,
)
wad_file = Fileinput(
gui_text = "Base WAD File",
gui_tooltip = "Your original OoT 1.2 NTSC-U / NTSC-J WAD file (.wad)",
gui_params = {
"file_types": [
{
"name": "WAD Files",
"extensions": ["wad"]
},
{
"name": "All Files",
"extensions": ["*"]
},
],
"hide_when_disabled": True,
},
)
wad_channel_id = Textinput(
gui_text = "WAD Channel ID",
default = "NICE",
gui_tooltip = """\
4 characters, should end with E to ensure Dolphin compatibility.
Note: If you have multiple OoTR WAD files with different Channel IDs installed, the game can crash on a soft reset. Use a Title Deleter to remove old WADs.
""",
gui_params = {
"size": "small",
"max_length": 4,
"no_line_break": True,
"hide_when_disabled": True,
},
)
wad_channel_title = Textinput(
gui_text = "WAD Channel Title",
default = "OoTRandomizer",
gui_tooltip = "20 characters max",
gui_params = {
"size": "medium",
"max_length": 20,
"hide_when_disabled": True,
},
)
presets = SettingInfoStr(
gui_text = "",
gui_type = "Presetinput",
default = "[New Preset]",
gui_tooltip = '''\
Select a setting preset to apply.
Default/Beginner is aimed at those familiar with the vanilla game who desire a similar progression.
Uses base glitchless logic. No timesavers (See the tab "Other") are enabled in this preset
and the world begins closed. Expect a long playthrough.
Easy Mode is aimed at those who have perhaps seen a few randomizer runs previously and/or
wish to dive right in. Uses base glitchless logic. Most timesavers (See the tab "Other")
are enabled and the world is more open after leaving Kokiri Forest.
Hell Mode is designed to be as frustrating an experience as possible, with every setting enabled
to provide maximum randomness as well as things like one-hit-KO, one-bonk-KO and max ice traps.
It still uses glitchless logic to ensure a beatable seed. However, be aware that all glitchless
"tricks" are enabled which have the potential to require the player to perform difficult techniques.
Expect a long and painful playthrough, even with good note-taking.
The other presets are for racing and/or tournaments.
After a preset is loaded, the settings can be viewed/changed in the other tabs before
generating a seed.
''',
)
password_lock = Checkbutton(
gui_text = "Lock Seed Behind Password",
gui_tooltip = '''\
Starting the seed will be locked behind a password provided in the spoiler log.
The password is a sequence of 6 button presses (A and C).
''',
shared = True,
gui_params = {
'optional': True,
},
)
# Main Rules (and "Guarantee Reachable Locations")
randomize_settings = Checkbutton(
gui_text = 'Randomize Main Rule Settings',
gui_tooltip = '''\
Randomizes all settings on the 'Main Rules' tab, except:
- Logic Rules
- (Random) Number of MQ Dungeons
- Pre-completed Dungeons
- Rainbow Bridge/Ganon Boss Key Requirements: Gold Skulltula Tokens
- Variable numbers of Spiritual Stones, Medallions, or Dungeons
for Rainbow Bridge and Ganon's Boss Key
(you will always be required to obtain all the relevant rewards)
- Scrub Shuffle will either be "Off" or "On (Affordable)"
''',
default = False,
disable = {
True: {
'sections': ['shuffle_section'],
'settings': [
'open_forest', 'open_kakariko', 'open_door_of_time', 'zora_fountain', 'gerudo_fortress', 'dungeon_shortcuts_choice',
'dungeon_shortcuts', 'trials_random', 'trials',
'starting_age', 'shuffle_interior_entrances', 'shuffle_hideout_entrances',
'shuffle_grotto_entrances', 'shuffle_dungeon_entrances',
'shuffle_bosses', 'shuffle_overworld_entrances', 'shuffle_gerudo_valley_river_exit', 'owl_drops', 'warp_songs', 'spawn_positions',
'triforce_hunt', 'triforce_count_per_world', 'triforce_goal_per_world', 'free_bombchu_drops', 'one_item_per_dungeon',
'shuffle_mapcompass', 'shuffle_smallkeys', 'shuffle_hideoutkeys', 'shuffle_tcgkeys', 'key_rings_choice', 'key_rings',
'shuffle_silver_rupees', 'silver_rupee_pouches_choice', 'silver_rupee_pouches', 'shuffle_bosskeys', 'enhance_map_compass',
],
},
},
shared = True,
)
logic_rules = Combobox(
gui_text = 'Logic Rules',
default = 'glitchless',
choices = {
'glitchless': 'Glitchless',
'glitched': 'Glitched',
'none': 'No Logic',
},
gui_tooltip = '''\
Logic provides guiding sets of rules for world generation
which the Randomizer uses to ensure the generated seeds
are beatable.
'Glitchless': No glitches are required, but may require
some minor tricks. Add minor tricks to consider for logic
in the 'Detailed Logic' tab.
'Glitched': Movement-oriented glitches are likely required.
No locations excluded.
'No Logic': Maximize randomization, All locations are
considered available. MAY BE IMPOSSIBLE TO BEAT.
''',
disable = {
'glitchless': {'settings': ['tricks_list_msg']},
'glitched': {'settings': ['allowed_tricks', 'shuffle_interior_entrances', 'shuffle_hideout_entrances', 'shuffle_grotto_entrances',
'shuffle_dungeon_entrances', 'shuffle_overworld_entrances', 'shuffle_gerudo_valley_river_exit', 'owl_drops',
'warp_songs', 'spawn_positions', 'mq_dungeons_mode', 'mq_dungeons_specific',
'mq_dungeons_count', 'shuffle_bosses', 'dungeon_shortcuts', 'deadly_bonks',
'shuffle_freestanding_items', 'shuffle_pots', 'shuffle_crates', 'shuffle_beehives', 'shuffle_silver_rupees', 'shuffle_wonderitems']},
'none': {'settings': ['allowed_tricks', 'logic_no_night_tokens_without_suns_song', 'reachable_locations']},
},
shared = True,
)
reachable_locations = Combobox(
gui_text = 'Guarantee Reachable Locations',
default = 'all',
choices = {
'all': 'All',
'goals': 'All Goals',
'beatable': 'Required Only',
},
gui_tooltip = '''\
This determines which items and locations are guaranteed to be reachable.
'All': The randomizer will guarantee that every item is obtainable and every location is reachable.
'All Goals': The randomizer will guarantee that every goal item is obtainable, not just the amount required
to beat the game, but otherwise behaves like 'Required Only'.
Goal items are the items required for the rainbow bridge and/or Ganon's Boss Key, so for example if the bridge is
set to 1 Medallion and Ganon's Boss Key to 1 Gold Skulltula Token, all 6 Medallions and all 100 Tokens will
be obtainable. In Triforce Hunt, this will instead guarantee that all Triforce Pieces can be obtained. Hint
distributions that define custom goals or remove the default goals will affect item placement as well.
'Required Only': Only items and locations required to beat the game will be guaranteed reachable.
''',
gui_params = {
"hide_when_disabled": True,
},
shared = True,
)
triforce_hunt = Checkbutton(
gui_text = 'Triforce Hunt',
gui_tooltip = '''\
Pieces of the Triforce have been scattered around the world.
Find some of them to beat the game.
Game is saved on completion, and Ganon's Castle key is given
if beating the game again is desired.
''',
shared = True,
gui_params = {
'randomize_key': 'randomize_settings',
},
disable = {
True: {'settings': ['shuffle_ganon_bosskey', 'ganon_bosskey_stones', 'ganon_bosskey_medallions', 'ganon_bosskey_rewards', 'ganon_bosskey_tokens', 'ganon_bosskey_hearts']},
False: {'settings': ['triforce_count_per_world', 'triforce_goal_per_world']},
},
)
triforce_count_per_world = Scale(
gui_text = 'Triforces Per World',
default = 30,
minimum = 1,
maximum = 999,
shared = True,
gui_tooltip = '''\
Select the amount of Triforce Pieces placed in each world.
Each world will have the same number of triforces.
A good number to choose is 1.5 times the amount of
Triforce Pieces required per world, for example 30
Triforces placed with a goal of 20. Higher ratios will
result in easier and shorter seeds, while a ratio closer
to 1 will generally be longer and more difficult.
''',
gui_params = {
"hide_when_disabled": True,
'web:max': 200,
'electron:max': 200,
},
)
triforce_goal_per_world = Scale(
gui_text = 'Required Triforces Per World',
default = 20,
minimum = 1,
maximum = 999,
shared = True,
gui_tooltip = '''\
Select the amount of Triforce Pieces required to beat the game.
In multiworld, the required amount will be per world collectively.
For example, if this is set to 20 in a 2 player multiworld, players
need 40 total, but one player could obtain 30 and the other 10.
''',
gui_params = {
"hide_when_disabled": True,
'web:max': 100,
'electron:max': 100,
},
)
lacs_condition = Combobox(
gui_text = 'LACS Condition',
default = 'vanilla',
choices = {
'vanilla': "Vanilla",
'stones': "Stones",
'medallions': "Medallions",
'dungeons': "Dungeon Rewards",
'tokens': "Tokens",
'hearts': "Hearts",
},
gui_tooltip = '''\
Sets the condition for the Light Arrow Cutscene
check to give you the item from Zelda.
'Vanilla': Shadow and Spirit Medallions.
'Stones': A configurable amount of Spiritual Stones.
'Medallions': A configurable amount of Medallions.
'Dungeon Rewards': A configurable amount of Dungeon Rewards.
'Tokens': A configurable amount of Gold Skulltula Tokens.
'Hearts': A configurable amount of hearts.
''',
shared = True,
disable = {
'!stones': {'settings': ['lacs_stones']},
'!medallions': {'settings': ['lacs_medallions']},
'!dungeons': {'settings': ['lacs_rewards']},
'!tokens': {'settings': ['lacs_tokens']},
'!hearts': {'settings': ['lacs_hearts']},
},
gui_params = {
'optional': True,
'distribution': [
('vanilla', 1),
('medallions', 1),
('stones', 1),
('dungeons', 1),
],
},
)
lacs_medallions = Scale(
gui_text = "Medallions Required for LACS",
default = 6,
minimum = 1,
maximum = 6,
gui_tooltip = '''\
Select the amount of Medallions required to trigger the Light Arrow Cutscene.
''',
shared = True,
disabled_default = 0,
gui_params = {
'optional': True,
"hide_when_disabled": True,
'distribution': [(6, 1)],
},
)
lacs_stones = Scale(
gui_text = "Spiritual Stones Required for LACS",
default = 3,
minimum = 1,
maximum = 3,
gui_tooltip = '''\
Select the amount of Spiritual Stones required to trigger the Light Arrow Cutscene.
''',
shared = True,
disabled_default = 0,
gui_params = {
'optional': True,
"hide_when_disabled": True,
'distribution': [(3, 1)],
},
)
lacs_rewards = Scale(
gui_text = "Dungeon Rewards Required for LACS",
default = 9,
minimum = 1,
maximum = 9,
gui_tooltip = '''\
Select the amount of Dungeon Rewards (Medallions and Spiritual Stones)
required to trigger the Light Arrow Cutscene.
''',
shared = True,
disabled_default = 0,
gui_params = {
'optional': True,
"hide_when_disabled": True,
'distribution': [(9, 1)],
},
)
lacs_tokens = Scale(
gui_text = "Gold Skulltula Tokens Required for LACS",
default = 100,
minimum = 1,
maximum = 999,
gui_tooltip = '''\
Select the amount of Gold Skulltula Tokens
required to trigger the Light Arrow Cutscene.
''',
shared = True,
disabled_default = 0,
gui_params = {
'optional': True,
"hide_when_disabled": True,
'web:max': 100,
'electron:max': 100,
},
)
lacs_hearts = Scale(
gui_text = "Hearts Required for LACS",
default = 20,
minimum = 4,
maximum = 20,
gui_tooltip = '''\
Select the amount of hearts
required to trigger the Light Arrow Cutscene.
''',
shared = True,
disabled_default = 0,
gui_params = {
'optional': True,
"hide_when_disabled": True,
},
)
bridge = Combobox(
gui_text = 'Rainbow Bridge Requirement',
default = 'medallions',
choices = {
'open': 'Always Open',
'vanilla': 'Vanilla Requirements',
'stones': 'Spiritual Stones',
'medallions': 'Medallions',
'dungeons': 'Dungeon Rewards',
'tokens': 'Gold Skulltula Tokens',
'hearts': 'Hearts',
'random': 'Random'
},
gui_tooltip = '''\
'Always Open': Rainbow Bridge is always present.
'Vanilla Requirements': Spirit/Shadow Medallions and Light Arrows.
'Spiritual Stones': A configurable amount of Spiritual Stones.
'Medallions': A configurable amount of Medallions.
'Dungeon Rewards': A configurable amount of Dungeon Rewards.
'Gold Skulltula Tokens': A configurable amount of Gold Skulltula Tokens.
'Hearts': A configurable amount of hearts.
'Random': A random Rainbow Bridge requirement excluding Gold Skulltula Tokens.
''',
shared = True,
disable = {
'!stones': {'settings': ['bridge_stones']},
'!medallions': {'settings': ['bridge_medallions']},
'!dungeons': {'settings': ['bridge_rewards']},
'!tokens': {'settings': ['bridge_tokens']},
'!hearts': {'settings': ['bridge_hearts']},
},
gui_params = {
'randomize_key': 'randomize_settings',
'distribution': [
('open', 1),
('vanilla', 1),
('stones', 1),
('medallions', 1),
('dungeons', 1),
],
},
)
bridge_medallions = Scale(
gui_text = "Medallions Required for Bridge",
default = 6,
minimum = 1,
maximum = 6,
gui_tooltip = '''\
Select the amount of Medallions required to spawn the rainbow bridge.
''',
shared = True,
disabled_default = 0,
gui_params = {
"randomize_key": "randomize_settings",
"hide_when_disabled": True,
'distribution': [(6, 1)],
},
)
bridge_stones = Scale(
gui_text = "Spiritual Stones Required for Bridge",
default = 3,
minimum = 1,
maximum = 3,
gui_tooltip = '''\
Select the amount of Spiritual Stones required to spawn the rainbow bridge.
''',
shared = True,
disabled_default = 0,
gui_params = {
"randomize_key": "randomize_settings",
"hide_when_disabled": True,
'distribution': [(3, 1)],
},
)
bridge_rewards = Scale(
gui_text = "Dungeon Rewards Required for Bridge",
default = 9,
minimum = 1,
maximum = 9,
gui_tooltip = '''\
Select the amount of Dungeon Rewards (Medallions and Spiritual Stones)
required to spawn the rainbow bridge.
''',
shared = True,
disabled_default = 0,
gui_params = {
"randomize_key": "randomize_settings",
"hide_when_disabled": True,
'distribution': [(9, 1)],
},
)
bridge_tokens = Scale(
gui_text = "Skulltulas Required for Bridge",
default = 100,
minimum = 1,
maximum = 999,
gui_tooltip = '''\
Select the amount of Gold Skulltula Tokens required to spawn the rainbow bridge.
''',
shared = True,
disabled_default = 0,