mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
(for now) only collect ER hint info for LttP
Optimize Entrance
This commit is contained in:
@@ -934,7 +934,6 @@ class Region(object):
|
||||
self.is_dark_world = False
|
||||
self.spot_type = 'Region'
|
||||
self.hint_text = hint
|
||||
self.recursion_count = 0
|
||||
self.player = player
|
||||
|
||||
def can_reach(self, state: CollectionState):
|
||||
@@ -966,6 +965,7 @@ class Region(object):
|
||||
|
||||
|
||||
class Entrance(object):
|
||||
spot_type = 'Entrance'
|
||||
|
||||
def __init__(self, player: int, name: str = '', parent=None):
|
||||
self.name = name
|
||||
@@ -973,9 +973,6 @@ class Entrance(object):
|
||||
self.connected_region = None
|
||||
self.target = None
|
||||
self.addresses = None
|
||||
self.spot_type = 'Entrance'
|
||||
self.recursion_count = 0
|
||||
self.vanilla = None
|
||||
self.access_rule = lambda state: True
|
||||
self.player = player
|
||||
self.hide_path = False
|
||||
@@ -988,11 +985,10 @@ class Entrance(object):
|
||||
|
||||
return False
|
||||
|
||||
def connect(self, region, addresses=None, target=None, vanilla=None):
|
||||
def connect(self, region, addresses=None, target=None):
|
||||
self.connected_region = region
|
||||
self.target = target
|
||||
self.addresses = addresses
|
||||
self.vanilla = vanilla
|
||||
region.entrances.append(self)
|
||||
|
||||
def __repr__(self):
|
||||
|
Reference in New Issue
Block a user