First stepping around xyzgrid, still issues

This commit is contained in:
Griatch 2021-07-11 11:25:03 +02:00
parent 75319d3941
commit de66313ec9
8 changed files with 159 additions and 16 deletions

View file

@ -1088,6 +1088,7 @@ class MapTransitionMapNode(TransitionMapNode):
class NSMapLink(MapLink):
"""Two-way, North-South link"""
symbol = "|"
display_symbol = "||"
directions = {"n": "s", "s": "n"}
prototype = "xyz_exit"
@ -1164,6 +1165,7 @@ class UpMapLink(SmartMapLink):
# all movement over this link is 'up', regardless of where on the xygrid we move.
direction_aliases = {'n': symbol, 'ne': symbol, 'e': symbol, 'se': symbol,
's': symbol, 'sw': symbol, 'w': symbol, 'nw': symbol}
spawn_aliases = {direction: ("up", "u") for direction in direction_aliases}
prototype = "xyz_exit"
@ -1173,6 +1175,7 @@ class DownMapLink(UpMapLink):
# all movement over this link is 'down', regardless of where on the xygrid we move.
direction_aliases = {'n': symbol, 'ne': symbol, 'e': symbol, 'se': symbol,
's': symbol, 'sw': symbol, 'w': symbol, 'nw': symbol}
spawn_aliases = {direction: ("down", "do") for direction in direction_aliases}
prototype = "xyz_exit"