forked from AmazingAmpharos/OoT-Randomizer
-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed Forest with ER and adult start #1305
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
723be01
Initial commit
puddydoo a7d5743
Update SettingsList.py
puddydoo 311fd7b
Slight change to Require Gohma
puddydoo dc70952
Allow closed door adult if door can immediately be opened
puddydoo a9e300e
Require Gohma compatible with overworld ER
puddydoo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,13 +58,8 @@ def __init__(self, id, settings): | |
self.entrance_shuffle = self.shuffle_interior_entrances or self.shuffle_grotto_entrances or self.shuffle_dungeon_entrances or \ | ||
self.shuffle_overworld_entrances or self.owl_drops or self.warp_songs or self.spawn_positions | ||
|
||
self.ensure_tod_access = self.shuffle_interior_entrances or self.shuffle_overworld_entrances or self.spawn_positions | ||
self.disable_trade_revert = self.shuffle_interior_entrances or self.shuffle_overworld_entrances | ||
|
||
if self.open_forest == 'closed' and (self.shuffle_special_interior_entrances or self.shuffle_overworld_entrances or | ||
self.warp_songs or self.spawn_positions): | ||
self.open_forest = 'closed_deku' | ||
|
||
self.triforce_goal = self.triforce_goal_per_world * settings.world_count | ||
|
||
if self.triforce_hunt: | ||
|
@@ -100,6 +95,15 @@ def __init__(self, id, settings): | |
|
||
self.resolve_random_settings() | ||
|
||
if self.open_forest == 'closed' and self.starting_age == 'adult' and self.logic_rules == 'glitchless' and \ | ||
not (self.open_door_of_time or ('Ocarina' and 'Song of Time') in self.distribution.starting_items or \ | ||
self.shuffle_special_interior_entrances or self.shuffle_overworld_entrances or self.spawn_positions): | ||
# adult is not compatible with glitchless closed forest without shuffled entrances or open door of time | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A comment explaining why this is the case would be nice. It took us a while to figure out why the Door of Time setting affects this in #dev-glitchless-logic. |
||
self.open_forest = 'closed_deku' | ||
|
||
self.ensure_tod_access = self.shuffle_special_interior_entrances or self.shuffle_overworld_entrances or self.spawn_positions or \ | ||
(self.open_forest == 'closed' and (self.starting_age == 'adult' or not self.logic_require_gohma)) | ||
|
||
if len(settings.hint_dist_user) == 0: | ||
for d in HintDistFiles(): | ||
dist = read_json(d) | ||
|
@@ -247,11 +251,7 @@ def resolve_random_settings(self): | |
self.starting_tod = random.choice(choices) | ||
self.randomized_list.append('starting_tod') | ||
if self.starting_age == 'random': | ||
if self.settings.open_forest == 'closed': | ||
# adult is not compatible | ||
self.starting_age = 'child' | ||
else: | ||
self.starting_age = random.choice(['child', 'adult']) | ||
self.starting_age = random.choice(['child', 'adult']) | ||
self.randomized_list.append('starting_age') | ||
if self.chicken_count_random: | ||
self.chicken_count = random.randint(0, 7) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Ocarina' and 'Song of Time'
just evaluates to'Song of Time'
.