mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
A Hat in Time: Implement New Game (#2640)
Adds A Hat in Time as a supported game in Archipelago.
This commit is contained in:
31
worlds/ahit/test/test_acts.py
Normal file
31
worlds/ahit/test/test_acts.py
Normal file
@@ -0,0 +1,31 @@
|
||||
from ..Regions import act_chapters
|
||||
from ..Rules import act_connections
|
||||
from . import HatInTimeTestBase
|
||||
|
||||
|
||||
class TestActs(HatInTimeTestBase):
|
||||
run_default_tests = False
|
||||
|
||||
options = {
|
||||
"ActRandomizer": 2,
|
||||
"EnableDLC1": 1,
|
||||
"EnableDLC2": 1,
|
||||
"ShuffleActContracts": 0,
|
||||
}
|
||||
|
||||
def test_act_shuffle(self):
|
||||
for i in range(300):
|
||||
self.world_setup()
|
||||
self.collect_all_but([""])
|
||||
|
||||
for name in act_chapters.keys():
|
||||
region = self.multiworld.get_region(name, 1)
|
||||
for entrance in region.entrances:
|
||||
if entrance.name in act_connections.keys():
|
||||
continue
|
||||
|
||||
self.assertTrue(self.can_reach_entrance(entrance.name),
|
||||
f"Can't reach {name} from {entrance}\n"
|
||||
f"{entrance.parent_region.entrances[0]} -> {entrance.parent_region} "
|
||||
f"-> {entrance} -> {name}"
|
||||
f" (expected method of access)")
|
||||
Reference in New Issue
Block a user