@@ -1023,32 +1023,39 @@ def set_goals(self) -> None:
10231023
10241024 # To avoid too many goals in the hint selection phase,
10251025 # trials are reduced to one goal with six items to obtain.
1026- if not self .skipped_trials ['Forest' ]:
1027- trial_goal .items .append ({'name' : 'Forest Trial Clear' , 'quantity' : 1 , 'minimum' : 1 , 'hintable' : True })
1028- trials .goal_count += 1
1029- if not self .skipped_trials ['Fire' ]:
1030- trial_goal .items .append ({'name' : 'Fire Trial Clear' , 'quantity' : 1 , 'minimum' : 1 , 'hintable' : True })
1031- trials .goal_count += 1
1032- if not self .skipped_trials ['Water' ]:
1033- trial_goal .items .append ({'name' : 'Water Trial Clear' , 'quantity' : 1 , 'minimum' : 1 , 'hintable' : True })
1034- trials .goal_count += 1
1035- if not self .skipped_trials ['Shadow' ]:
1036- trial_goal .items .append ({'name' : 'Shadow Trial Clear' , 'quantity' : 1 , 'minimum' : 1 , 'hintable' : True })
1037- trials .goal_count += 1
1038- if not self .skipped_trials ['Spirit' ]:
1039- trial_goal .items .append ({'name' : 'Spirit Trial Clear' , 'quantity' : 1 , 'minimum' : 1 , 'hintable' : True })
1040- trials .goal_count += 1
1041- if not self .skipped_trials ['Light' ]:
1042- trial_goal .items .append ({'name' : 'Light Trial Clear' , 'quantity' : 1 , 'minimum' : 1 , 'hintable' : True })
1026+ if self .settings .shuffle_ganon_tower :
1027+ trial_goal .items .append ({'name' : 'Ganons Tower Access' , 'quantity' : 1 , 'minimum' : 1 , 'hintable' : True })
10431028 trials .goal_count += 1
10441029
1045- # Trials category is finalized and saved only if at least one trial is on
1046- # If random trials are on and one world in multiworld gets 0 trials, still
1047- # add the goal to prevent key errors. Since no items fulfill the goal, it
1048- # will always be invalid for that world and not generate hints.
1049- if self .settings .trials > 0 or self .settings .trials_random :
10501030 trials .add_goal (trial_goal )
10511031 self .goal_categories [trials .name ] = trials
1032+ else :
1033+ if not self .skipped_trials ['Forest' ]:
1034+ trial_goal .items .append ({'name' : 'Forest Trial Clear' , 'quantity' : 1 , 'minimum' : 1 , 'hintable' : True })
1035+ trials .goal_count += 1
1036+ if not self .skipped_trials ['Fire' ]:
1037+ trial_goal .items .append ({'name' : 'Fire Trial Clear' , 'quantity' : 1 , 'minimum' : 1 , 'hintable' : True })
1038+ trials .goal_count += 1
1039+ if not self .skipped_trials ['Water' ]:
1040+ trial_goal .items .append ({'name' : 'Water Trial Clear' , 'quantity' : 1 , 'minimum' : 1 , 'hintable' : True })
1041+ trials .goal_count += 1
1042+ if not self .skipped_trials ['Shadow' ]:
1043+ trial_goal .items .append ({'name' : 'Shadow Trial Clear' , 'quantity' : 1 , 'minimum' : 1 , 'hintable' : True })
1044+ trials .goal_count += 1
1045+ if not self .skipped_trials ['Spirit' ]:
1046+ trial_goal .items .append ({'name' : 'Spirit Trial Clear' , 'quantity' : 1 , 'minimum' : 1 , 'hintable' : True })
1047+ trials .goal_count += 1
1048+ if not self .skipped_trials ['Light' ]:
1049+ trial_goal .items .append ({'name' : 'Light Trial Clear' , 'quantity' : 1 , 'minimum' : 1 , 'hintable' : True })
1050+ trials .goal_count += 1
1051+
1052+ # Trials category is finalized and saved only if at least one trial is on
1053+ # If random trials are on and one world in multiworld gets 0 trials, still
1054+ # add the goal to prevent key errors. Since no items fulfill the goal, it
1055+ # will always be invalid for that world and not generate hints.
1056+ if self .settings .trials > 0 or self .settings .trials_random :
1057+ trials .add_goal (trial_goal )
1058+ self .goal_categories [trials .name ] = trials
10521059
10531060 # In glitched logic or if trials are off, it's possible that some items required to beat the game
10541061 # (such as bow, magic, light arrows, or anything required to reach Ganon's Castle)
0 commit comments