@@ -651,34 +651,34 @@ def __init__(self, parent: MultiWorld):
651651
652652 def update_reachable_regions (self , player : int ):
653653 self .stale [player ] = False
654- rrp = self .reachable_regions [player ]
655- bc = self .blocked_connections [player ]
654+ reachable_regions = self .reachable_regions [player ]
655+ blocked_connections = self .blocked_connections [player ]
656656 queue = deque (self .blocked_connections [player ])
657- start = self .multiworld .get_region (' Menu' , player )
657+ start = self .multiworld .get_region (" Menu" , player )
658658
659659 # init on first call - this can't be done on construction since the regions don't exist yet
660- if start not in rrp :
661- rrp .add (start )
662- bc .update (start .exits )
660+ if start not in reachable_regions :
661+ reachable_regions .add (start )
662+ blocked_connections .update (start .exits )
663663 queue .extend (start .exits )
664664
665665 # run BFS on all connections, and keep track of those blocked by missing items
666666 while queue :
667667 connection = queue .popleft ()
668668 new_region = connection .connected_region
669- if new_region in rrp :
670- bc .remove (connection )
669+ if new_region in reachable_regions :
670+ blocked_connections .remove (connection )
671671 elif connection .can_reach (self ):
672672 assert new_region , f"tried to search through an Entrance \" { connection } \" with no Region"
673- rrp .add (new_region )
674- bc .remove (connection )
675- bc .update (new_region .exits )
673+ reachable_regions .add (new_region )
674+ blocked_connections .remove (connection )
675+ blocked_connections .update (new_region .exits )
676676 queue .extend (new_region .exits )
677677 self .path [new_region ] = (new_region .name , self .path .get (connection , None ))
678678
679679 # Retry connections if the new region can unblock them
680680 for new_entrance in self .multiworld .indirect_connections .get (new_region , set ()):
681- if new_entrance in bc and new_entrance not in queue :
681+ if new_entrance in blocked_connections and new_entrance not in queue :
682682 queue .append (new_entrance )
683683
684684 def copy (self ) -> CollectionState :
0 commit comments