mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-06 10:18:12 -07:00
* Add trap items, relevant options, and citadel orb caches. * Update REPL to send traps to game. * Fix item counter. * Allow player to select which traps to use. * Fix host.yaml doc strings, ap-setup-options typing, bump memory version to 5. * Alter some trap names. * Update world doc. * Add health trap. * Added 3 more trap types. * Protect against empty trap list. * Reword traps paragraph in world doc. * Another update to trap paragraph. * Concisify trap option docstring. * Timestamp on game log file. * Update client to handle waiting on title screen. * Send slot name and seed to game. * Use self.random instead. * Update setup doc for new title screen. * Quick clarification of orb caches in world doc. * Sanitize slot info earlier. * Added to and improved unit tests. * Light cleanup on world. * Optimizations to movement rules, docs: known issues update.
32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
from ..test import JakAndDaxterTestBase
|
|
from ..Items import move_item_table
|
|
|
|
|
|
class MoveRandoTest(JakAndDaxterTestBase):
|
|
options = {
|
|
"enable_move_randomizer": True
|
|
}
|
|
|
|
def test_move_items_in_pool(self):
|
|
for move in move_item_table:
|
|
self.assertIn(move_item_table[move], {item.name for item in self.multiworld.itempool})
|
|
self.assertNotIn(move_item_table[move],
|
|
{item.name for item in self.multiworld.precollected_items[self.player]})
|
|
|
|
def test_cannot_reach_without_move(self):
|
|
self.assertAccessDependency(
|
|
["GR: Climb Up The Cliff"],
|
|
[["Double Jump"], ["Crouch"]],
|
|
only_check_listed=True)
|
|
|
|
|
|
class NoMoveRandoTest(JakAndDaxterTestBase):
|
|
options = {
|
|
"enable_move_randomizer": False
|
|
}
|
|
|
|
def test_move_items_in_inventory(self):
|
|
for move in move_item_table:
|
|
self.assertNotIn(move_item_table[move], {item.name for item in self.multiworld.itempool})
|
|
self.assertIn(move_item_table[move],
|
|
{item.name for item in self.multiworld.precollected_items[self.player]}) |