@@ -17,6 +17,7 @@ init (t) -- call once, supply:
17
17
t.timing -- true to show timing
18
18
t.show_completed -- true to show "Speedwalk completed."
19
19
t.show_other_areas -- true to show non-current areas
20
+ t.show_up_down -- follow up/down exits
20
21
t.show_area_exits -- true to draw a circle around rooms leading to other areas
21
22
t.speedwalk_prefix -- if not nil, speedwalk by prefixing with this
22
23
@@ -58,7 +59,7 @@ Room info should include:
58
59
59
60
module (... , package.seeall )
60
61
61
- VERSION = 1.6 -- for querying by plugins
62
+ VERSION = 1.7 -- for querying by plugins
62
63
63
64
require " movewindow"
64
65
require " copytable"
@@ -83,6 +84,7 @@ local timing -- true to show timing and other info
83
84
local show_completed -- true to show "Speedwalk completed."
84
85
local show_other_areas -- true to draw other areas
85
86
local show_area_exits -- true to show area exits
87
+ local show_up_down -- true to show up/down exits
86
88
87
89
88
90
-- current room number
@@ -698,7 +700,8 @@ local function draw_room (uid, path, x, y)
698
700
linetype = 1 -- dash
699
701
700
702
else
701
- if not show_other_areas and rooms [exit_uid ].area ~= current_area then
703
+ if (not show_other_areas and rooms [exit_uid ].area ~= current_area ) or
704
+ (not show_up_down and (dir == " u" or dir == " d" )) then
702
705
exit_info = stub_exit_info -- don't show other areas
703
706
else
704
707
-- if we are scheduled to draw the room already, only draw a stub this time
@@ -1181,6 +1184,7 @@ function init (t)
1181
1184
timing = t .timing -- true for timing info
1182
1185
show_completed = t .show_completed -- true to show "Speedwalk completed." message
1183
1186
show_other_areas = t .show_other_areas -- true to show other areas
1187
+ show_up_down = t .show_up_down -- true to show up or down
1184
1188
show_area_exits = t .show_area_exits -- true to show area exits
1185
1189
speedwalk_prefix = t .speedwalk_prefix -- how to speedwalk (prefix)
1186
1190
0 commit comments