mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-06 23:28:14 -07:00
* Reorder cell counts, require punch for Klaww. * Friendlier friendly friendlies. * Removed custom_worlds references from docs/setup guide, focused OpenGOAL Launcher language. * Increased breadth of unit tests.
36 lines
1.3 KiB
Python
36 lines
1.3 KiB
Python
import typing
|
|
|
|
from BaseClasses import CollectionState
|
|
from . import JakAndDaxterTestBase
|
|
from ..GameID import jak1_id
|
|
from ..Items import move_item_table
|
|
from ..regs.RegionBase import JakAndDaxterRegion
|
|
|
|
|
|
class ReorderedCellCountsTest(JakAndDaxterTestBase):
|
|
options = {
|
|
"enable_ordered_cell_counts": True,
|
|
"fire_canyon_cell_count": 20,
|
|
"mountain_pass_cell_count": 15,
|
|
"lava_tube_cell_count": 10,
|
|
}
|
|
|
|
def test_reordered_cell_counts(self):
|
|
self.world.generate_early()
|
|
self.assertLessEqual(self.world.options.fire_canyon_cell_count, self.world.options.mountain_pass_cell_count)
|
|
self.assertLessEqual(self.world.options.mountain_pass_cell_count, self.world.options.lava_tube_cell_count)
|
|
|
|
|
|
class UnorderedCellCountsTest(JakAndDaxterTestBase):
|
|
options = {
|
|
"enable_ordered_cell_counts": False,
|
|
"fire_canyon_cell_count": 20,
|
|
"mountain_pass_cell_count": 15,
|
|
"lava_tube_cell_count": 10,
|
|
}
|
|
|
|
def test_unordered_cell_counts(self):
|
|
self.world.generate_early()
|
|
self.assertGreaterEqual(self.world.options.fire_canyon_cell_count, self.world.options.mountain_pass_cell_count)
|
|
self.assertGreaterEqual(self.world.options.mountain_pass_cell_count, self.world.options.lava_tube_cell_count)
|