diff --git a/journey_temple.lua b/journey_temple.lua --- a/journey_temple.lua +++ b/journey_temple.lua @@ -267,6 +267,38 @@ dt_labyrinth = room { s:update(); end; update = function(s) + dt_north:disable(); + dt_north_east:disable(); + dt_east:disable(); + dt_south_east:disable(); + dt_south:disable(); + dt_south_west:disable(); + dt_west:disable(); + dt_north_west:disable(); + if (dt_labyrinth_map[dt_labyrinth.location].n) then + dt_north:enable(); + end; + if (dt_labyrinth_map[dt_labyrinth.location].ne) then + dt_north_east:enable(); + end; + if (dt_labyrinth_map[dt_labyrinth.location].e) then + dt_east:enable(); + end; + if (dt_labyrinth_map[dt_labyrinth.location].se) then + dt_south_east:enable(); + end; + if (dt_labyrinth_map[dt_labyrinth.location].s) then + dt_south:enable(); + end; + if (dt_labyrinth_map[dt_labyrinth.location].sw) then + dt_south_west:enable(); + end; + if (dt_labyrinth_map[dt_labyrinth.location].w) then + dt_west:enable(); + end; + if (dt_labyrinth_map[dt_labyrinth.location].nw) then + dt_north_west:enable(); + end; move(submarine_leviathan, dt_labyrinth_map[dt_labyrinth.location].where); end; way = { @@ -287,6 +319,7 @@ dt_labyrinth = room { dt_elsewhere = obj { nam = "dt_elsewhere"; + dsc = "{В другое место}^"; act = function(s) walk(leviathan_dlg); end; @@ -294,6 +327,7 @@ dt_elsewhere = obj { dt_north = obj { nam = "dt_north"; + dsc = "{На север}^"; act = function(s) pr [[Вы движетесь на север. ]]; dt_labyrinth.location = dt_labyrinth_map[dt_labyrinth.location].n; @@ -304,6 +338,7 @@ dt_north = obj { dt_north_east = obj { nam = "dt_north_east"; + dsc = "{На северо-восток}^"; act = function(s) pr [[ Вы движетесь на северо-восток. @@ -316,6 +351,7 @@ dt_north_east = obj { dt_east = obj { nam = "dt_east"; + dsc = "{На восток}^"; act = function(s) pr [[ Вы движетесь на восток. @@ -328,6 +364,7 @@ dt_east = obj { dt_south_east = obj { nam = "dt_south_east"; + dsc = "{На юго-восток}^"; act = function(s) pr [[ Вы движетесь на юго-восток. @@ -340,6 +377,7 @@ dt_south_east = obj { dt_south = obj { nam = "dt_south"; + dsc = "{На юг}^"; act = function(s) pr [[ Вы движетесь на юг. @@ -352,6 +390,7 @@ dt_south = obj { dt_south_west = obj { nam = "dt_south_west"; + dsc = "{На юго-запад}^"; act = function(s) pr [[ Вы движетесь на юго-запад. @@ -364,6 +403,7 @@ dt_south_west = obj { dt_west = obj { nam = "dt_west"; + dsc = "{На запад}^"; act = function(s) pr [[ Вы движетесь на запад. @@ -376,6 +416,7 @@ dt_west = obj { dt_north_west = obj { nam = "dt_north_west"; + dsc = "{На северо-запад}^"; act = function(s) pr [[Вы движетесь на северо-запад. ]]; dt_labyrinth.location = dt_labyrinth_map[dt_labyrinth.location].nw;