summaryrefslogtreecommitdiff
path: root/durt/nodes/(-1426,11,-2548).lua
diff options
context:
space:
mode:
Diffstat (limited to 'durt/nodes/(-1426,11,-2548).lua')
-rw-r--r--durt/nodes/(-1426,11,-2548).lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/durt/nodes/(-1426,11,-2548).lua b/durt/nodes/(-1426,11,-2548).lua
index e69de29..a8de413 100644
--- a/durt/nodes/(-1426,11,-2548).lua
+++ b/durt/nodes/(-1426,11,-2548).lua
@@ -0,0 +1,21 @@
+-- S27 Export Departures splitter
+if not F.has_rc("S27_SHUNTER") or not F.has_rc("S27_EXPORT_ACTIVE") then return end
+if not atc_arrow then
+ F.remove_rc_match("S27_EXP_DIR_%S+")
+ return
+end
+
+if not F.has_rc("S27_EXPORT_FINAL") then --still more train to shuffle
+ split_off_locomotive("A0B0",1)
+ F.add_rc({
+ "S27_EXP_HS_N",
+ "S27_EXP_HS_N_AC",
+ "S27_EXP_DIR_ARRIVALS",
+ })
+ return
+end
+
+F.add_rc({
+ "S27_EXP_EXIT_N"
+})
+atc_send("S3")