summaryrefslogtreecommitdiff
path: root/il_timetable/nodes/(288,4,206).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:32 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:32 +0200
commit5c7f77725394d47ce0b907aabf885ea207a507bd (patch)
treea1ff9c67ef8f225a259e4c6f4c163a45c58bb870 /il_timetable/nodes/(288,4,206).lua
parentb435d1b1b26db6f7c4f3eb589ecf1ed3bb79b57e (diff)
downloadluaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.tar.gz
luaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.tar.bz2
luaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.zip
State at 2024-10-15
Diffstat (limited to 'il_timetable/nodes/(288,4,206).lua')
-rw-r--r--il_timetable/nodes/(288,4,206).lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/il_timetable/nodes/(288,4,206).lua b/il_timetable/nodes/(288,4,206).lua
new file mode 100644
index 0000000..8b9e918
--- /dev/null
+++ b/il_timetable/nodes/(288,4,206).lua
@@ -0,0 +1,28 @@
+if event.train then
+st_name = "NYE Square"
+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("A0 B0 W O"..doors)
+ schedule(next_dep_time, "depart")
+ elseif event.schedule then
+ atc_send("A1OCD1SM")
+ digiline_send("monitor", "Last Departure: | "..rwt.to_string(rwt.now(), true))
+ atc_set_text_inside("")
+ depart = true
+ end
+