mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00

* Adventure: remove absolute imports * Alttp: remove absolute imports (all but tests) * Aquaria: remove absolute imports in tests running tests from apworld may fail (on 3.8 and maybe in the future) otherwise * DKC3: remove absolute imports * LADX: remove absolute imports * Overcooked 2: remove absolute imports in tests running tests from apworld may fail otherwise * Rogue Legacy: remove absolute imports in tests running tests from apworld may fail otherwise * SC2: remove absolute imports * SMW: remove absolute imports * Subnautica: remove absolute imports in tests running tests from apworld may fail otherwise * Zillion: remove absolute imports in tests running tests from apworld may fail otherwise
21 lines
699 B
Python
21 lines
699 B
Python
from typing import cast
|
|
from test.bases import WorldTestBase
|
|
from .. import ZillionWorld
|
|
|
|
|
|
class ZillionTestBase(WorldTestBase):
|
|
game = "Zillion"
|
|
|
|
def ensure_gun_3_requirement(self) -> None:
|
|
"""
|
|
There's a low probability that gun 3 is not required.
|
|
|
|
This makes sure that gun 3 is required by making all the canisters
|
|
in O-7 (including key word canisters) require gun 3.
|
|
"""
|
|
zz_world = cast(ZillionWorld, self.multiworld.worlds[1])
|
|
assert zz_world.zz_system.randomizer
|
|
for zz_loc_name, zz_loc in zz_world.zz_system.randomizer.locations.items():
|
|
if zz_loc_name.startswith("r15c6"):
|
|
zz_loc.req.gun = 3
|