diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:52:38 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:52:38 +0200 |
commit | 919dbef9da1345a4c30f768ca99d63402dd606a3 (patch) | |
tree | e8947aa6e3eb2faff51e842f893dfda6392f47d5 /nodes/(159,11,846).lua | |
parent | f50738ad5ee065da57ff6211ed34c4fd15be703e (diff) | |
download | il_timetable-919dbef9da1345a4c30f768ca99d63402dd606a3.tar.gz il_timetable-919dbef9da1345a4c30f768ca99d63402dd606a3.tar.bz2 il_timetable-919dbef9da1345a4c30f768ca99d63402dd606a3.zip |
State at 2021-04-04
Diffstat (limited to 'nodes/(159,11,846).lua')
-rw-r--r-- | nodes/(159,11,846).lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nodes/(159,11,846).lua b/nodes/(159,11,846).lua new file mode 100644 index 0000000..49e1131 --- /dev/null +++ b/nodes/(159,11,846).lua @@ -0,0 +1,28 @@ +if event.train then +st_name = "Schwarzschild Street" +set_line("4") +flip = not flip +end + +doors = "L" + if event.train then + local time_now = rwt.now() + local next_dep_time = rwt.next_rpt(rwt.add(time_now, 10), 120, 0) +if flip then + atc_set_text_outside("4 - Showroom") + digiline_send("monitor", "4 Showroom "..rwt.to_string(next_dep_time, true)) + set_rc("SH") +else + digiline_send("monitor", "4 Ice Mountain "..rwt.to_string(next_dep_time, true)) + atc_set_text_outside("4 - Ice Mountain") + set_rc("IM") +end + atc_set_text_inside(st_name.."\nDeparture: "..rwt.to_string(next_dep_time, true)) + atc_send("B0 W O"..doors) + schedule(next_dep_time, "depart") + elseif event.schedule then + atc_send("OCD1SM") + digiline_send("monitor", "Last Departure: | "..rwt.to_string(rwt.now(), true)) + atc_set_text_inside("") + depart = true + end |