mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Updated HK test to use autoworld
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
from worlds.hk import Options
|
from worlds.hk import HKWorld
|
||||||
from BaseClasses import MultiWorld
|
from BaseClasses import MultiWorld
|
||||||
from worlds.hk.Regions import create_regions
|
from worlds import AutoWorld
|
||||||
from worlds.hk import gen_hollow
|
from worlds.hk.Options import hollow_knight_randomize_options, hollow_knight_skip_options
|
||||||
|
|
||||||
from test.TestBase import TestBase
|
from test.TestBase import TestBase
|
||||||
|
|
||||||
@@ -10,9 +10,11 @@ class TestVanilla(TestBase):
|
|||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.world = MultiWorld(1)
|
self.world = MultiWorld(1)
|
||||||
self.world.game[1] = "Hollow Knight"
|
self.world.game[1] = "Hollow Knight"
|
||||||
for hk_option in Options.hollow_knight_randomize_options:
|
self.world.worlds[1] = HKWorld(self.world, 1)
|
||||||
|
for hk_option in hollow_knight_randomize_options:
|
||||||
setattr(self.world, hk_option, {1: True})
|
setattr(self.world, hk_option, {1: True})
|
||||||
for hk_option, option in Options.hollow_knight_skip_options.items():
|
for hk_option, option in hollow_knight_skip_options.items():
|
||||||
setattr(self.world, hk_option, {1: option.default})
|
setattr(self.world, hk_option, {1: option.default})
|
||||||
create_regions(self.world, 1)
|
AutoWorld.call_single(self.world, "create_regions", 1)
|
||||||
gen_hollow(self.world, 1)
|
AutoWorld.call_single(self.world, "generate_basic", 1)
|
||||||
|
AutoWorld.call_single(self.world, "set_rules", 1)
|
Reference in New Issue
Block a user