diff options
Diffstat (limited to 'rules.py')
| -rw-r--r-- | rules.py | 9 |
1 files changed, 3 insertions, 6 deletions
| diff --git a/rules.py b/rules.py index 9cc11fd..d91c53f 100644 --- a/rules.py +++ b/rules.py | |||
| @@ -42,12 +42,6 @@ def lingo_can_use_level_2_location(state: CollectionState, world: "LingoWorld"): | |||
| 42 | counted_panels += panel_count | 42 | counted_panels += panel_count |
| 43 | if counted_panels >= world.options.level_2_requirement.value - 1: | 43 | if counted_panels >= world.options.level_2_requirement.value - 1: |
| 44 | return True | 44 | return True |
| 45 | # THE MASTER has to be handled separately, because it has special access rules. | ||
| 46 | if state.can_reach("Orange Tower Seventh Floor", "Region", world.player)\ | ||
| 47 | and lingo_can_use_mastery_location(state, world): | ||
| 48 | counted_panels += 1 | ||
| 49 | if counted_panels >= world.options.level_2_requirement.value - 1: | ||
| 50 | return True | ||
| 51 | return False | 45 | return False |
| 52 | 46 | ||
| 53 | 47 | ||
| @@ -65,6 +59,9 @@ def _lingo_can_satisfy_requirements(state: CollectionState, access: AccessRequir | |||
| 65 | if not state.has(color.capitalize(), world.player): | 59 | if not state.has(color.capitalize(), world.player): |
| 66 | return False | 60 | return False |
| 67 | 61 | ||
| 62 | if access.the_master and not lingo_can_use_mastery_location(state, world): | ||
| 63 | return False | ||
| 64 | |||
| 68 | return True | 65 | return True |
| 69 | 66 | ||
| 70 | 67 | ||
