mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Tests: check that Regions are reachable (#1034)
* Tests: check that Regions are reachable try to prevent errors from unconnected/never reachable Regions * Test region access (#1039) * Tests: note oot's default unreachable regions * [SM] Fixed failing testAllStateCanReachEverything (#1087) * [SM] Fixed failing testAllStateCanReachEverything - by adding exclusion for Regions used only when corresponding Starting Location is used - by removing unnecessary VARIA Regions used only for EscapeRando (not supported in AP anyway) * Update worlds/sm/Regions.py Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com> * Update worlds/sm/Rules.py Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com> * Update worlds/sm/Regions.py Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com> Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com> * Update test/general/TestReachability.py --------- Co-authored-by: espeon65536 <81029175+espeon65536@users.noreply.github.com> Co-authored-by: lordlou <87331798+lordlou@users.noreply.github.com> Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
This commit is contained in:
@@ -6,12 +6,13 @@ def create_regions(self, world, player: int):
|
||||
|
||||
regions = []
|
||||
for accessPoint in Logic.accessPoints:
|
||||
regions.append(create_region( self,
|
||||
world,
|
||||
player,
|
||||
accessPoint.Name,
|
||||
None,
|
||||
[accessPoint.Name + "->" + key for key in accessPoint.intraTransitions.keys()]))
|
||||
if not accessPoint.Escape:
|
||||
regions.append(create_region(self,
|
||||
world,
|
||||
player,
|
||||
accessPoint.Name,
|
||||
None,
|
||||
[accessPoint.Name + "->" + key for key in accessPoint.intraTransitions.keys()]))
|
||||
|
||||
world.regions += regions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user