mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Improve handling of entrance addresses.
This commit is contained in:
@@ -397,6 +397,7 @@ class Entrance(object):
|
||||
self.parent_region = parent
|
||||
self.connected_region = None
|
||||
self.target = None
|
||||
self.addresses = None
|
||||
self.spot_type = 'Entrance'
|
||||
self.recursion_count = 0
|
||||
|
||||
@@ -409,9 +410,10 @@ class Entrance(object):
|
||||
|
||||
return False
|
||||
|
||||
def connect(self, region, target=None):
|
||||
def connect(self, region, addresses=None, target=None):
|
||||
self.connected_region = region
|
||||
self.target = target
|
||||
self.addresses = addresses
|
||||
region.entrances.append(self)
|
||||
|
||||
def __str__(self):
|
||||
|
Reference in New Issue
Block a user