summaryrefslogtreecommitdiff
path: root/durt/nodes/(-4120,13,-5762).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 /durt/nodes/(-4120,13,-5762).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 'durt/nodes/(-4120,13,-5762).lua')
-rw-r--r--durt/nodes/(-4120,13,-5762).lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/durt/nodes/(-4120,13,-5762).lua b/durt/nodes/(-4120,13,-5762).lua
new file mode 100644
index 0000000..17b5acb
--- /dev/null
+++ b/durt/nodes/(-4120,13,-5762).lua
@@ -0,0 +1,24 @@
+--[[Arrivals North End]]--
+local arrivals_indicator = POS(-4107, 20, -5793)
+
+if not event.train then return end
+if atc_arrow then
+ if not F.has_rc("DLG_SHUNTER") then return end
+ local pre_split_length = train_length()
+ local split_fc = split_at_fc("A0B0S0", 7)
+ local post_split_length = train_length()
+
+
+ local add_rc = {
+ "DLG_HS_N",
+ "DLG_HS_N_AC",
+ split_fc ~= "" and "DLG_CLASS_"..split_fc or ""}
+
+ if pre_split_length == post_split_length then --last collection, haven't had to split anything off
+ F.indicator(arrivals_indicator, false)
+ table.insert(add_rc, "DLG_FINAL_ARRIVAL")
+ end
+ F.add_rc(add_rc)
+ return
+end
+F.remove_rc_match("DLG_DIR_%S+_N") \ No newline at end of file