Files
Archipelago/worlds/jakanddaxter/test/test_orderedcellcounts.py
massimilianodelliubaldini e0410eabdd More Options, More Docs, More Tests (#51)
* 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.
2024-09-16 20:03:30 -04:00

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)