More dungeon code
This commit is contained in:
parent
07ff42b77c
commit
6a4b14fb83
4 changed files with 64 additions and 24 deletions
|
|
@ -56,7 +56,7 @@ class TestDungeon(EvAdventureMixin, BaseEvenniaTest):
|
|||
if exi.key == direction:
|
||||
# by setting target to old-location we trigger the
|
||||
# special behavior of this Exit type
|
||||
exi.at_traverse(self.character, old_location)
|
||||
exi.at_traverse(self.character, exi.destination)
|
||||
break
|
||||
return self.character.location
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ class TestDungeon(EvAdventureMixin, BaseEvenniaTest):
|
|||
self.assertTrue(inherits_from(new_room_north, EvAdventureDungeonRoom))
|
||||
|
||||
# check if Orchestrator was created
|
||||
orchestrator = self.start_north.scripts.get(dungeon.EvAdventureDungeonOrchestrator)
|
||||
orchestrator = new_room_north.db.dungeon_orchestrator
|
||||
self.assertTrue(bool(orchestrator))
|
||||
self.assertTrue(orchestrator.key.startswith("dungeon_orchestrator_north_"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue