Document Connection Plando

and show where Connection Plando Errors come from
This commit is contained in:
Fabian Dill
2021-01-17 18:28:10 +01:00
parent 446893c504
commit 26314f7c13
2 changed files with 66 additions and 34 deletions

View File

@@ -2251,7 +2251,10 @@ def plando_connect(world, player: int):
if world.plando_connections[player]:
for connection in world.plando_connections[player]:
func = lookup[connection.direction]
func(world, connection.entrance, connection.exit, player)
try:
func(world, connection.entrance, connection.exit, player)
except Exception as e:
raise Exception(f"Could not connect using {connection}") from e
LW_Dungeon_Entrances = ['Desert Palace Entrance (South)',