diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-03 04:51:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-03 03:51:27 -0500 |
| commit | e75c4b6b26ae2406a40718e084ad15421c9ce3be (patch) | |
| tree | e94414fc9b3c3d8ca292222b18460b174f2f2e34 /rules.py | |
| parent | 50e452717500aaaa8ea056f127cc2c4b353c310a (diff) | |
| download | lingo-apworld-e75c4b6b26ae2406a40718e084ad15421c9ce3be.tar.gz lingo-apworld-e75c4b6b26ae2406a40718e084ad15421c9ce3be.tar.bz2 lingo-apworld-e75c4b6b26ae2406a40718e084ad15421c9ce3be.zip | |
Lingo: Fix Basement access with THE MASTER (#3231)
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 | ||
