Skip to content

Commit

Permalink
Merge 'Better error message for conflicting settings in plando' (#1862)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjohnson57 committed Feb 4, 2023
2 parents c031a99 + 27ba326 commit 35b0a09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ issue. You should always Hard Reset to avoid this issue entirely.

#### Plandomizer
* Plandomizer now allows you to specify locations that are valid but do not exist in your current seed, for example, an MQ-specific location when that dungeon is Vanilla.
* Error messages for conflicting settings have been improved.

### 7.1

Expand Down
5 changes: 2 additions & 3 deletions SettingsList.py
Original file line number Diff line number Diff line change
Expand Up @@ -6310,9 +6310,8 @@ def validate_settings(settings_dict, *, check_conflicts=True):

def validate_disabled_setting(settings_dict, setting, choice, other_setting):
if other_setting in settings_dict:
disabled_default = get_setting_info(other_setting).disabled_default
if settings_dict[other_setting] != disabled_default:
raise ValueError(f'{other_setting!r} must be set to {disabled_default!r} since {setting!r} is set to {choice!r}')
if settings_dict[other_setting] != get_setting_info(other_setting).disabled_default:
raise ValueError(f'The {other_setting!r} setting cannot be used since {setting!r} is set to {choice!r}')

class UnmappedSettingError(Exception):
pass
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '7.1.35'
__version__ = '7.1.36'

# This is a supplementary version number for branches based off of main dev.
supplementary_version = 0
Expand Down

0 comments on commit 35b0a09

Please sign in to comment.