-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMacros.py
1544 lines (1050 loc) · 56 KB
/
Macros.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 BaseClasses import CollectionState
def can_play_winds_requiem(state: CollectionState, player: int) -> bool:
return state.has("Wind Waker", player) and state.has("Wind's Requiem", player)
def can_play_ballad_of_gales(state: CollectionState, player: int) -> bool:
return state.has("Wind Waker", player) and state.has("Ballad of Gales", player)
def can_play_command_melody(state: CollectionState, player: int) -> bool:
return state.has("Wind Waker", player) and state.has("Command Melody", player)
def can_play_earth_gods_lyric(state: CollectionState, player: int) -> bool:
return state.has("Wind Waker", player) and state.has("Earth God's Lyric", player)
def can_play_wind_gods_aria(state: CollectionState, player: int) -> bool:
return state.has("Wind Waker", player) and state.has("Wind God's Aria", player)
def can_play_song_of_passing(state: CollectionState, player: int) -> bool:
return state.has("Wind Waker", player) and state.has("Song of Passing", player)
def can_fan_with_deku_leaf(state: CollectionState, player: int) -> bool:
return state.has("Deku Leaf", player)
def can_fly_with_deku_leaf_indoors(state: CollectionState, player: int) -> bool:
return state.has("Deku Leaf", player) and has_magic_meter(state, player)
def can_fly_with_deku_leaf_outdoors(state: CollectionState, player: int) -> bool:
return state.has("Deku Leaf", player) and has_magic_meter(state, player) and can_play_winds_requiem(state, player)
def can_use_magic_armor(state: CollectionState, player: int) -> bool:
return state.has("Magic Armor", player) and has_magic_meter(state, player)
def can_use_hurricane_spin(state: CollectionState, player: int) -> bool:
return state.has("Hurricane Spin", player) and has_magic_meter(state, player)
def can_aim_mirror_shield(state: CollectionState, player: int) -> bool:
return has_mirror_shield(state, player) and (
has_heros_sword(state, player)
or state.has("Wind Waker", player)
or state.has("Grappling Hook", player)
or state.has("Boomerang", player)
or state.has("Deku Leaf", player)
or has_heros_bow(state, player)
or state.has("Hookshot", player)
)
def can_move_boulders(state: CollectionState, player: int) -> bool:
return state.has("Bombs", player) or state.has("Power Bracelets", player)
def can_defeat_door_flowers(state: CollectionState, player: int) -> bool:
return (
state.has("Boomerang", player)
or has_heros_bow(state, player)
or state.has("Bombs", player)
or state.has("Hookshot", player)
)
def can_hit_diamond_switches_at_range(state: CollectionState, player: int) -> bool:
return state.has("Boomerang", player) or has_heros_bow(state, player) or state.has("Hookshot", player)
def can_destroy_seeds_hanging_by_vines(state: CollectionState, player: int) -> bool:
return (
state.has("Boomerang", player)
or has_heros_bow(state, player)
or state.has("Bombs", player)
or state.has("Hookshot", player)
)
def can_buy_bait(state: CollectionState, player: int) -> bool:
return True
def can_buy_hyoi_pears(state: CollectionState, player: int) -> bool:
return True
def has_heros_sword(state: CollectionState, player: int) -> bool:
return not state._tww_in_swordless_mode(player) and state.has("Progressive Sword", player, 1)
def has_any_master_sword(state: CollectionState, player: int) -> bool:
return not state._tww_in_swordless_mode(player) and state.has("Progressive Sword", player, 2)
def has_full_power_master_sword(state: CollectionState, player: int) -> bool:
return not state._tww_in_swordless_mode(player) and state.has("Progressive Sword", player, 4)
def has_heros_shield(state: CollectionState, player: int) -> bool:
return state.has("Progressive Shield", player, 1)
def has_mirror_shield(state: CollectionState, player: int) -> bool:
return state.has("Progressive Shield", player, 2)
def has_heros_bow(state: CollectionState, player: int) -> bool:
return state.has("Progressive Bow", player, 1)
def has_fire_arrows(state: CollectionState, player: int) -> bool:
return state.has("Progressive Bow", player, 2) and has_magic_meter(state, player)
def has_ice_arrows(state: CollectionState, player: int) -> bool:
return state.has("Progressive Bow", player, 2) and has_magic_meter(state, player)
def has_light_arrows(state: CollectionState, player: int) -> bool:
return state.has("Progressive Bow", player, 3) and has_magic_meter(state, player)
def has_any_wallet_upgrade(state: CollectionState, player: int) -> bool:
return state.has("Progressive Wallet", player, 1)
def has_picto_box(state: CollectionState, player: int) -> bool:
return state.has("Progressive Picto Box", player, 1)
def has_deluxe_picto_box(state: CollectionState, player: int) -> bool:
return state.has("Progressive Picto Box", player, 2)
def has_60_bomb_bomb_bag(state: CollectionState, player: int) -> bool:
return state.has("Progressive Bomb Bag", player, 1)
def has_99_bomb_bomb_bag(state: CollectionState, player: int) -> bool:
return state.has("Progressive Bomb Bag", player, 2)
def has_60_arrow_quiver(state: CollectionState, player: int) -> bool:
return state.has("Progressive Quiver", player, 1)
def has_99_arrow_quiver(state: CollectionState, player: int) -> bool:
return state.has("Progressive Quiver", player, 2)
def has_magic_meter(state: CollectionState, player: int) -> bool:
return state.has("Progressive Magic Meter", player, 1)
def has_magic_meter_upgrade(state: CollectionState, player: int) -> bool:
return state.has("Progressive Magic Meter", player, 2)
def has_all_8_triforce_shards(state: CollectionState, player: int) -> bool:
return state.has_group_unique("Shards", player, 8)
def has_tingle_bombs(state: CollectionState, player: int) -> bool:
return state.has("Bombs", player) or (state._tww_tuner_logic_enabled(player) and state.has("Tingle Tuner", player))
def can_activate_tingle_bomb_triggers_without_tingle_tuner(state: CollectionState, player: int) -> bool:
return True
def can_reach_outset_island_upper_level(state: CollectionState, player: int) -> bool:
return can_cut_down_outset_trees(state, player) or (
can_fly_with_deku_leaf_outdoors(state, player) and state._tww_obscure_1(player)
)
def can_access_forest_of_fairies(state: CollectionState, player: int) -> bool:
return can_reach_outset_island_upper_level(state, player) and can_fly_with_deku_leaf_outdoors(state, player)
def can_reach_dragon_roost_cavern_gaping_maw(state: CollectionState, player: int) -> bool:
return (
can_access_dragon_roost_cavern(state, player)
and state.has("DRC Small Key", player, 1)
and (
(state.has("DRC Small Key", player, 4) and can_cut_down_hanging_drc_platform(state, player))
or (can_fly_with_deku_leaf_indoors(state, player) and state._tww_obscure_2(player))
or (has_ice_arrows(state, player) and state._tww_obscure_2(player) and state._tww_precise_1(player))
)
)
def can_reach_dragon_roost_cavern_boss_stairs(state: CollectionState, player: int) -> bool:
return (
can_access_dragon_roost_cavern(state, player)
and state.has("DRC Small Key", player, 4)
and (
state.has("Grappling Hook", player)
or can_fly_with_deku_leaf_indoors(state, player)
or state.has("Hookshot", player)
or has_ice_arrows(state, player)
)
)
def can_reach_tower_of_the_gods_second_floor(state: CollectionState, player: int) -> bool:
return (
can_access_tower_of_the_gods(state, player)
and state.has("Bombs", player)
and state.has("TotG Small Key", player, 1)
and can_defeat_yellow_chuchus(state, player)
)
def can_reach_tower_of_the_gods_third_floor(state: CollectionState, player: int) -> bool:
return (
can_reach_tower_of_the_gods_second_floor(state, player)
and can_bring_east_servant_of_the_tower(state, player)
and can_bring_west_servant_of_the_tower(state, player)
and can_bring_north_servant_of_the_tower(state, player)
and state.has("Wind Waker", player)
)
def can_bring_east_servant_of_the_tower(state: CollectionState, player: int) -> bool:
return True
def can_bring_west_servant_of_the_tower(state: CollectionState, player: int) -> bool:
return (
(state.has("Grappling Hook", player) or can_fly_with_deku_leaf_indoors(state, player))
and can_play_command_melody(state, player)
and has_heros_bow(state, player)
)
def can_bring_north_servant_of_the_tower(state: CollectionState, player: int) -> bool:
return (
state.has("TotG Small Key", player, 2)
and (can_fly_with_deku_leaf_indoors(state, player) or state._tww_obscure_1(player))
and can_play_command_melody(state, player)
)
def can_reach_earth_temple_sun_statue_room(state: CollectionState, player: int) -> bool:
return (
can_access_earth_temple(state, player)
and can_play_command_melody(state, player)
and can_defeat_red_chuchus(state, player)
and can_defeat_green_chuchus(state, player)
and can_defeat_dark_chuchus(state, player)
)
def can_reach_earth_temple_right_path(state: CollectionState, player: int) -> bool:
return (
can_reach_earth_temple_sun_statue_room(state, player)
and can_play_command_melody(state, player)
and state.has("Skull Hammer", player)
)
def can_reach_earth_temple_left_path(state: CollectionState, player: int) -> bool:
return can_reach_earth_temple_sun_statue_room(state, player) and state.has("ET Small Key", player, 2)
def can_reach_earth_temple_moblins_and_poes_room(state: CollectionState, player: int) -> bool:
return (
can_reach_earth_temple_left_path(state, player)
and has_fire_arrows(state, player)
and state.has("Power Bracelets", player)
and can_defeat_floormasters(state, player)
and (can_play_command_melody(state, player) or has_mirror_shield(state, player))
)
def can_reach_earth_temple_basement(state: CollectionState, player: int) -> bool:
return (
can_reach_earth_temple_sun_statue_room(state, player)
and can_play_command_melody(state, player)
and can_aim_mirror_shield(state, player)
)
def can_reach_earth_temple_redead_hub_room(state: CollectionState, player: int) -> bool:
return can_reach_earth_temple_basement(state, player) and can_play_earth_gods_lyric(state, player)
def can_reach_earth_temple_third_crypt(state: CollectionState, player: int) -> bool:
return (
can_reach_earth_temple_redead_hub_room(state, player)
and (can_play_command_melody(state, player) or can_aim_mirror_shield(state, player))
and state.has("Power Bracelets", player)
and state.has("Skull Hammer", player)
and state.has("ET Small Key", player, 3)
and (can_defeat_red_bubbles(state, player) or state._tww_precise_2(player))
and can_play_command_melody(state, player)
and can_aim_mirror_shield(state, player)
)
def can_reach_earth_temple_tall_vine_room(state: CollectionState, player: int) -> bool:
return can_reach_earth_temple_third_crypt(state, player) and can_play_earth_gods_lyric(state, player)
def can_reach_earth_temple_many_mirrors_room(state: CollectionState, player: int) -> bool:
return can_reach_earth_temple_tall_vine_room(state, player)
def can_reach_wind_temple_kidnapping_room(state: CollectionState, player: int) -> bool:
return (
can_access_wind_temple(state, player)
and can_play_command_melody(state, player)
and state.has("Iron Boots", player)
and can_fly_with_deku_leaf_indoors(state, player)
)
def can_reach_end_of_wind_temple_many_cyclones_room(state: CollectionState, player: int) -> bool:
return can_reach_wind_temple_kidnapping_room(state, player) and (
(
state.has("Iron Boots", player)
and can_fan_with_deku_leaf(state, player)
and can_fly_with_deku_leaf_indoors(state, player)
and can_cut_grass(state, player)
)
or (
state.has("Hookshot", player)
and can_defeat_blue_bubbles(state, player)
and can_fly_with_deku_leaf_indoors(state, player)
)
or (
state.has("Hookshot", player)
and can_fly_with_deku_leaf_indoors(state, player)
and state._tww_obscure_1(player)
and state._tww_precise_2(player)
)
)
def can_open_wind_temple_upper_giant_grate(state: CollectionState, player: int) -> bool:
return can_reach_end_of_wind_temple_many_cyclones_room(state, player) and state.has("Iron Boots", player)
def can_activate_wind_temple_giant_fan(state: CollectionState, player: int) -> bool:
return can_open_wind_temple_upper_giant_grate(state, player) and can_play_command_melody(state, player)
def can_open_wind_temple_lower_giant_grate(state: CollectionState, player: int) -> bool:
return (
can_reach_wind_temple_kidnapping_room(state, player)
and state.has("Hookshot", player)
and can_defeat_blue_bubbles(state, player)
)
def can_reach_wind_temple_tall_basement_room(state: CollectionState, player: int) -> bool:
return (
can_open_wind_temple_upper_giant_grate(state, player)
and can_open_wind_temple_lower_giant_grate(state, player)
and state.has("WT Small Key", player, 2)
)
def can_access_dungeon_entrance_on_dragon_roost_island(state: CollectionState, player: int) -> bool:
return True
def can_access_forest_haven(state: CollectionState, player: int) -> bool:
return state.has("Grappling Hook", player) or can_fly_with_deku_leaf_outdoors(state, player)
def can_access_dungeon_entrance_in_forest_haven_sector(state: CollectionState, player: int) -> bool:
return (
can_access_forest_haven(state, player)
and (
state.has("Grappling Hook", player)
or (
can_fly_with_deku_leaf_indoors(state, player)
and can_fly_with_deku_leaf_outdoors(state, player)
and state._tww_obscure_1(player)
and state._tww_precise_1(player)
)
)
and can_fly_with_deku_leaf_outdoors(state, player)
and (can_cut_grass(state, player) or has_magic_meter_upgrade(state, player))
)
def can_access_dungeon_entrance_in_tower_of_the_gods_sector(state: CollectionState, player: int) -> bool:
return state.has_group_unique("Pearls", player, 3)
def can_access_dungeon_entrance_in_forsaken_fortress_sector(state: CollectionState, player: int) -> bool:
return False
def can_access_dungeon_entrance_on_headstone_island(state: CollectionState, player: int) -> bool:
return state.has("Power Bracelets", player)
def can_access_dungeon_entrance_on_gale_isle(state: CollectionState, player: int) -> bool:
return state.has("Iron Boots", player) and state.has("Skull Hammer", player)
def can_access_dragon_roost_cavern(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Dragon Roost Cavern", player)
def can_access_forbidden_woods(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Forbidden Woods", player)
def can_access_tower_of_the_gods(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Tower of the Gods", player)
def can_access_forsaken_fortress(state: CollectionState, player: int) -> bool:
return can_access_dungeon_entrance_in_forsaken_fortress_sector(state, player)
def can_access_earth_temple(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Earth Temple", player)
def can_access_wind_temple(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Wind Temple", player)
def can_access_miniboss_entrance_in_forbidden_woods(state: CollectionState, player: int) -> bool:
return (
can_access_forbidden_woods(state, player)
and can_fly_with_deku_leaf_indoors(state, player)
and can_defeat_boko_babas(state, player)
and state.has("Grappling Hook", player)
and state.has("FW Small Key", player, 1)
)
def can_access_miniboss_entrance_in_tower_of_the_gods(state: CollectionState, player: int) -> bool:
return (
can_reach_tower_of_the_gods_second_floor(state, player)
and (state.has("Grappling Hook", player) or can_fly_with_deku_leaf_indoors(state, player))
and (can_play_command_melody(state, player) or has_heros_bow(state, player))
)
def can_access_miniboss_entrance_in_earth_temple(state: CollectionState, player: int) -> bool:
return can_reach_earth_temple_moblins_and_poes_room(state, player) and state.has("ET Small Key", player, 3)
def can_access_miniboss_entrance_in_wind_temple(state: CollectionState, player: int) -> bool:
return can_open_wind_temple_upper_giant_grate(state, player) and state.has("WT Small Key", player, 2)
def can_access_miniboss_entrance_in_hyrule_castle(state: CollectionState, player: int) -> bool:
return can_access_hyrule(state, player)
def can_access_forbidden_woods_miniboss_arena(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Forbidden Woods Miniboss Arena", player)
def can_access_tower_of_the_gods_miniboss_arena(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Tower of the Gods Miniboss Arena", player)
def can_access_earth_temple_miniboss_arena(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Earth Temple Miniboss Arena", player)
def can_access_wind_temple_miniboss_arena(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Wind Temple Miniboss Arena", player)
def can_access_master_sword_chamber(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Master Sword Chamber", player)
def can_access_boss_entrance_in_dragon_roost_cavern(state: CollectionState, player: int) -> bool:
return can_reach_dragon_roost_cavern_boss_stairs(state, player) and state.has("DRC Big Key", player)
def can_access_boss_entrance_in_forbidden_woods(state: CollectionState, player: int) -> bool:
return (
can_access_forbidden_woods(state, player)
and can_fly_with_deku_leaf_indoors(state, player)
and can_defeat_boko_babas(state, player)
and (can_defeat_door_flowers(state, player) or state.has("Grappling Hook", player))
and can_defeat_mothulas(state, player)
and state.has("FW Big Key", player)
)
def can_access_boss_entrance_in_tower_of_the_gods(state: CollectionState, player: int) -> bool:
return (
can_reach_tower_of_the_gods_third_floor(state, player)
and can_defeat_armos(state, player)
and state.has("TotG Big Key", player)
)
def can_access_boss_entrance_in_forsaken_fortress(state: CollectionState, player: int) -> bool:
return (
can_get_inside_forsaken_fortress(state, player)
and state.has("Skull Hammer", player)
and (
can_fly_with_deku_leaf_indoors(state, player)
or state.has("Hookshot", player)
or (state._tww_obscure_2(player) and state._tww_precise_2(player))
)
and (
can_defeat_bokoblins(state, player)
or can_fly_with_deku_leaf_outdoors(state, player)
or state.has("Grappling Hook", player)
)
)
def can_access_boss_entrance_in_earth_temple(state: CollectionState, player: int) -> bool:
return can_reach_earth_temple_tall_vine_room(state, player) and state.has("ET Big Key", player)
def can_access_boss_entrance_in_wind_temple(state: CollectionState, player: int) -> bool:
return (
can_reach_wind_temple_tall_basement_room(state, player)
and state.has("Hookshot", player)
and state.has("Iron Boots", player)
and can_play_command_melody(state, player)
and can_play_wind_gods_aria(state, player)
and state.has("WT Big Key", player)
)
def can_access_gohma_boss_arena(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Gohma Boss Arena", player)
def can_access_kalle_demos_boss_arena(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Kalle Demos Boss Arena", player)
def can_access_gohdan_boss_arena(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Gohdan Boss Arena", player)
def can_access_helmaroc_king_boss_arena(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Helmaroc King Boss Arena", player)
def can_access_jalhalla_boss_arena(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Jalhalla Boss Arena", player)
def can_access_molgera_boss_arena(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Molgera Boss Arena", player)
def can_access_secret_cave_entrance_on_outset_island(state: CollectionState, player: int) -> bool:
return (
(can_reach_outset_island_upper_level(state, player) and can_fly_with_deku_leaf_outdoors(state, player))
or state.has("Hookshot", player)
) and state.has("Power Bracelets", player)
def can_access_secret_cave_entrance_on_dragon_roost_island(state: CollectionState, player: int) -> bool:
return can_move_boulders(state, player)
def can_access_secret_cave_entrance_on_fire_mountain(state: CollectionState, player: int) -> bool:
return has_ice_arrows(state, player)
def can_access_secret_cave_entrance_on_ice_ring_isle(state: CollectionState, player: int) -> bool:
return has_fire_arrows(state, player)
def can_access_secret_cave_entrance_on_private_oasis(state: CollectionState, player: int) -> bool:
return (
state.has("Delivery Bag", player) and state.has("Cabana Deed", player) and state.has("Grappling Hook", player)
)
def can_access_secret_cave_entrance_on_needle_rock_isle(state: CollectionState, player: int) -> bool:
return has_fire_arrows(state, player)
def can_access_secret_cave_entrance_on_angular_isles(state: CollectionState, player: int) -> bool:
return can_fly_with_deku_leaf_outdoors(state, player) or state.has("Hookshot", player)
def can_access_secret_cave_entrance_on_boating_course(state: CollectionState, player: int) -> bool:
return can_fly_with_deku_leaf_outdoors(state, player) or state.has("Hookshot", player)
def can_access_secret_cave_entrance_on_stone_watcher_island(state: CollectionState, player: int) -> bool:
return state.has("Power Bracelets", player)
def can_access_secret_cave_entrance_on_overlook_island(state: CollectionState, player: int) -> bool:
return state.has("Hookshot", player)
def can_access_secret_cave_entrance_on_birds_peak_rock(state: CollectionState, player: int) -> bool:
return state.has("Bait Bag", player) and can_buy_hyoi_pears(state, player)
def can_access_secret_cave_entrance_on_pawprint_isle(state: CollectionState, player: int) -> bool:
return True
def can_access_secret_cave_entrance_on_pawprint_isle_side_isle(state: CollectionState, player: int) -> bool:
return state.has("Hookshot", player)
def can_access_secret_cave_entrance_on_diamond_steppe_island(state: CollectionState, player: int) -> bool:
return state.has("Hookshot", player)
def can_access_secret_cave_entrance_on_bomb_island(state: CollectionState, player: int) -> bool:
return can_move_boulders(state, player)
def can_access_secret_cave_entrance_on_rock_spire_isle(state: CollectionState, player: int) -> bool:
return state.has("Bombs", player)
def can_access_secret_cave_entrance_on_shark_island(state: CollectionState, player: int) -> bool:
return state.has("Iron Boots", player) and state.has("Skull Hammer", player)
def can_access_secret_cave_entrance_on_cliff_plateau_isles(state: CollectionState, player: int) -> bool:
return True
def can_access_secret_cave_entrance_on_horseshoe_island(state: CollectionState, player: int) -> bool:
return can_fan_with_deku_leaf(state, player)
def can_access_secret_cave_entrance_on_star_island(state: CollectionState, player: int) -> bool:
return can_move_boulders(state, player)
def can_access_savage_labyrinth(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Savage Labyrinth", player)
def can_access_dragon_roost_island_secret_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Dragon Roost Island Secret Cave", player)
def can_access_fire_mountain_secret_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Fire Mountain Secret Cave", player)
def can_access_ice_ring_isle_secret_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Ice Ring Isle Secret Cave", player)
def can_access_cabana_labyrinth(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Cabana Labyrinth", player)
def can_access_needle_rock_isle_secret_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Needle Rock Isle Secret Cave", player)
def can_access_angular_isles_secret_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Angular Isles Secret Cave", player)
def can_access_boating_course_secret_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Boating Course Secret Cave", player)
def can_access_stone_watcher_island_secret_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Stone Watcher Island Secret Cave", player)
def can_access_overlook_island_secret_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Overlook Island Secret Cave", player)
def can_access_birds_peak_rock_secret_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Bird's Peak Rock Secret Cave", player)
def can_access_pawprint_isle_chuchu_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Pawprint Isle Chuchu Cave", player)
def can_access_pawprint_isle_wizzrobe_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Pawprint Isle Wizzrobe Cave", player)
def can_access_diamond_steppe_island_warp_maze_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Diamond Steppe Island Warp Maze Cave", player)
def can_access_bomb_island_secret_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Bomb Island Secret Cave", player)
def can_access_rock_spire_isle_secret_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Rock Spire Isle Secret Cave", player)
def can_access_shark_island_secret_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Shark Island Secret Cave", player)
def can_access_cliff_plateau_isles_secret_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Cliff Plateau Isles Secret Cave", player)
def can_access_horseshoe_island_secret_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Horseshoe Island Secret Cave", player)
def can_access_star_island_secret_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Star Island Secret Cave", player)
def can_access_inner_entrance_in_ice_ring_isle_secret_cave(state: CollectionState, player: int) -> bool:
return can_access_ice_ring_isle_secret_cave(state, player) and state.has("Iron Boots", player)
def can_access_inner_entrance_in_cliff_plateau_isles_secret_cave(state: CollectionState, player: int) -> bool:
return (
can_access_cliff_plateau_isles_secret_cave(state, player)
and can_defeat_boko_babas(state, player)
and can_fly_with_deku_leaf_indoors(state, player)
)
def can_access_ice_ring_isle_inner_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Ice Ring Isle Inner Cave", player)
def can_access_cliff_plateau_isles_inner_cave(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Cliff Plateau Isles Inner Cave", player)
def can_access_fairy_fountain_entrance_on_outset_island(state: CollectionState, player: int) -> bool:
return can_access_forest_of_fairies(state, player) and can_move_boulders(state, player)
def can_access_fairy_fountain_entrance_on_thorned_fairy_island(state: CollectionState, player: int) -> bool:
return state.has("Skull Hammer", player)
def can_access_fairy_fountain_entrance_on_eastern_fairy_island(state: CollectionState, player: int) -> bool:
return can_move_boulders(state, player)
def can_access_fairy_fountain_entrance_on_western_fairy_island(state: CollectionState, player: int) -> bool:
return state.has("Skull Hammer", player)
def can_access_fairy_fountain_entrance_on_southern_fairy_island(state: CollectionState, player: int) -> bool:
return state.has("Bombs", player) or has_fire_arrows(state, player)
def can_access_fairy_fountain_entrance_on_northern_fairy_island(state: CollectionState, player: int) -> bool:
return True
def can_access_outset_fairy_fountain(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Outset Fairy Fountain", player)
def can_access_thorned_fairy_fountain(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Thorned Fairy Fountain", player)
def can_access_eastern_fairy_fountain(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Eastern Fairy Fountain", player)
def can_access_western_fairy_fountain(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Western Fairy Fountain", player)
def can_access_southern_fairy_fountain(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Southern Fairy Fountain", player)
def can_access_northern_fairy_fountain(state: CollectionState, player: int) -> bool:
return state.can_reach_region("Northern Fairy Fountain", player)
def can_get_past_forsaken_fortress_gate(state: CollectionState, player: int) -> bool:
return (
state.has("Bombs", player)
or (state._tww_obscure_1(player) and state._tww_precise_1(player))
or (can_open_ganons_tower_dark_portal(state, player) and state._tww_obscure_1(player))
)
def can_get_inside_forsaken_fortress(state: CollectionState, player: int) -> bool:
return can_get_past_forsaken_fortress_gate(state, player) and state.has("Skull Hammer", player)
def can_reach_and_defeat_phantom_ganon(state: CollectionState, player: int) -> bool:
return can_get_past_forsaken_fortress_gate(state, player) and can_defeat_phantom_ganon(state, player)
def can_defeat_phantom_ganon(state: CollectionState, player: int) -> bool:
return (state._tww_outside_swordless_mode(player) and has_any_master_sword(state, player)) or (
state._tww_in_swordless_mode(player) and state.has("Skull Hammer", player)
)
def can_access_hyrule(state: CollectionState, player: int) -> bool:
return has_all_8_triforce_shards(state, player)
def can_get_past_hyrule_barrier(state: CollectionState, player: int) -> bool:
return can_access_hyrule(state, player) and (
has_full_power_master_sword(state, player) or state._tww_in_swordless_mode(player)
)
def can_access_ganons_tower(state: CollectionState, player: int) -> bool:
return can_get_past_hyrule_barrier(state, player) and (
state.has("Hookshot", player) or can_fly_with_deku_leaf_indoors(state, player)
)
def can_complete_memory_dragon_roost_cavern_and_gohma(state: CollectionState, player: int) -> bool:
return (
state.has("Grappling Hook", player)
and can_fly_with_deku_leaf_indoors(state, player)
and can_defeat_gohma(state, player)
)
def can_complete_memory_forbidden_woods_and_kalle_demos(state: CollectionState, player: int) -> bool:
return (
can_fan_with_deku_leaf(state, player)
and can_fly_with_deku_leaf_indoors(state, player)
and can_defeat_kalle_demos(state, player)
)
def can_complete_memory_earth_temple_and_jalhalla(state: CollectionState, player: int) -> bool:
return can_defeat_jalhalla(state, player)
def can_complete_memory_wind_temple_and_molgera(state: CollectionState, player: int) -> bool:
return can_fly_with_deku_leaf_indoors(state, player) and can_defeat_molgera(state, player)
def can_complete_all_memory_dungeons_and_bosses(state: CollectionState, player: int) -> bool:
return (
can_complete_memory_dragon_roost_cavern_and_gohma(state, player)
and can_complete_memory_forbidden_woods_and_kalle_demos(state, player)
and can_complete_memory_earth_temple_and_jalhalla(state, player)
and can_complete_memory_wind_temple_and_molgera(state, player)
)
def can_unlock_ganons_tower_four_boss_door(state: CollectionState, player: int) -> bool:
return can_complete_all_memory_dungeons_and_bosses(state, player) or state._tww_rematch_bosses_skipped(player)
def can_reach_ganons_tower_phantom_ganon_room(state: CollectionState, player: int) -> bool:
return can_access_ganons_tower(state, player) and can_unlock_ganons_tower_four_boss_door(state, player)
def can_open_ganons_tower_dark_portal(state: CollectionState, player: int) -> bool:
return can_reach_ganons_tower_phantom_ganon_room(state, player) and state.has("Boomerang", player)
def can_reach_and_defeat_puppet_ganon(state: CollectionState, player: int) -> bool:
return (
can_reach_ganons_tower_phantom_ganon_room(state, player)
and has_light_arrows(state, player)
and can_unlock_puppet_ganon_door(state, player)
and can_defeat_puppet_ganon(state, player)
)
def can_unlock_puppet_ganon_door(state: CollectionState, player: int) -> bool:
return (
can_defeat_moblins(state, player)
and can_defeat_mighty_darknuts(state, player)
and (
state._tww_outside_required_bosses_mode(player)
or (state._tww_in_required_bosses_mode(player) and state._tww_can_defeat_all_required_bosses(player))
)
)
def can_defeat_puppet_ganon(state: CollectionState, player: int) -> bool:
return has_light_arrows(state, player) and (state.has("Boomerang", player) or state._tww_precise_2(player))
def can_reach_and_defeat_ganondorf(state: CollectionState, player: int) -> bool:
return (
can_reach_and_defeat_puppet_ganon(state, player)
and state.has("Grappling Hook", player)
and state.has("Hookshot", player)
and can_defeat_ganondorf(state, player)
)
def can_defeat_ganondorf(state: CollectionState, player: int) -> bool:
return (has_heros_sword(state, player) or state._tww_in_swordless_mode(player)) and (
has_heros_shield(state, player) or (state.has("Skull Hammer", player) and state._tww_obscure_2(player))
)
def rescued_aryll(state: CollectionState, player: int) -> bool:
return True
def rescued_tingle(state: CollectionState, player: int) -> bool:
return True
def can_get_fairies(state: CollectionState, player: int) -> bool:
return True
def can_farm_knights_crests(state: CollectionState, player: int) -> bool:
return (
state.has("Grappling Hook", player)
and state.has("Spoils Bag", player)
and (
# (Can Access Item Location "Ice Ring Isle - Inner Cave - Chest")
(can_access_ice_ring_isle_inner_cave(state, player) and has_fire_arrows(state, player))
# | (Can Access Item Location "Outset Island - Savage Labyrinth - Floor 30")
or (
can_access_savage_labyrinth(state, player)
and can_defeat_keese(state, player)
and can_defeat_miniblins(state, player)
and can_defeat_red_chuchus(state, player)
and can_defeat_magtails(state, player)
and can_defeat_fire_keese(state, player)
and can_defeat_peahats(state, player)
and can_defeat_green_chuchus(state, player)
and can_defeat_boko_babas(state, player)
and can_defeat_mothulas(state, player)
and can_defeat_winged_mothulas(state, player)
and can_defeat_wizzrobes(state, player)
and can_defeat_armos(state, player)
and can_defeat_yellow_chuchus(state, player)
and can_defeat_red_bubbles(state, player)
and can_defeat_darknuts(state, player)
and can_play_winds_requiem(state, player)
and (
state.has("Grappling Hook", player)
or has_heros_sword(state, player)
or state.has("Skull Hammer", player)
)
)
# | (Can Access Item Location "Earth Temple - Big Key Chest" & Can Defeat Darknuts Easily)
or (
can_reach_earth_temple_many_mirrors_room(state, player)
and state.has("Power Bracelets", player)
and can_play_command_melody(state, player)
and can_aim_mirror_shield(state, player)
and (
can_defeat_blue_bubbles(state, player)
or (has_heros_bow(state, player) and state._tww_obscure_1(player))
or (
(
has_heros_sword(state, player)
or has_any_master_sword(state, player)
or state.has("Skull Hammer", player)
)
and state._tww_obscure_1(player)
and state._tww_precise_1(player)
)
)
and can_defeat_darknuts_easily(state, player)
)
# | (Can Access Item Location "Wind Temple - Big Key Chest" & Can Defeat Darknuts Easily)
or (
can_reach_wind_temple_kidnapping_room(state, player)
and state.has("Iron Boots", player)
and can_fan_with_deku_leaf(state, player)
and can_play_wind_gods_aria(state, player)
and can_defeat_darknuts_easily(state, player)
)
# | (Can Access Item Location "Shark Island - Cave")
or (can_access_shark_island_secret_cave(state, player) and can_defeat_miniblins(state, player))
# | (Can Access Item Location "Stone Watcher Island - Cave" & Can Defeat Darknuts Easily)
or (
can_access_stone_watcher_island_secret_cave(state, player)
and can_defeat_armos(state, player)
and can_defeat_wizzrobes(state, player)