Skip to content

Commit

Permalink
Lingo: Optimize imports and remove unused parameter (ArchipelagoMW#4305)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholassaylor authored Dec 3, 2024
1 parent ffe0221 commit 6f2e1c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions worlds/lingo/player_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def randomize_paintings(self, world: "LingoWorld") -> bool:
required_painting_rooms += REQUIRED_PAINTING_WHEN_NO_DOORS_ROOMS
req_exits = [painting_id for painting_id, painting in PAINTINGS.items() if painting.required_when_no_doors]

def is_req_enterable(painting_id: str, painting: Painting) -> bool:
def is_req_enterable(painting: Painting) -> bool:
if painting.exit_only or painting.disable or painting.req_blocked\
or painting.room in required_painting_rooms:
return False
Expand All @@ -433,7 +433,7 @@ def is_req_enterable(painting_id: str, painting: Painting) -> bool:
return True

req_enterable = [painting_id for painting_id, painting in PAINTINGS.items()
if is_req_enterable(painting_id, painting)]
if is_req_enterable(painting)]
req_exits += [painting_id for painting_id, painting in PAINTINGS.items()
if painting.exit_only and painting.required]
req_entrances = world.random.sample(req_enterable, len(req_exits))
Expand Down
1 change: 0 additions & 1 deletion worlds/lingo/utils/pickle_static_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import hashlib
import pickle
import sys
import Utils


Expand Down

0 comments on commit 6f2e1c2

Please sign in to comment.