summaryrefslogtreecommitdiff
path: root/durt/nodes/(-4117,13,-5765).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/(-4117,13,-5765).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/(-4117,13,-5765).lua')
-rw-r--r--durt/nodes/(-4117,13,-5765).lua36
1 files changed, 36 insertions, 0 deletions
diff --git a/durt/nodes/(-4117,13,-5765).lua b/durt/nodes/(-4117,13,-5765).lua
new file mode 100644
index 0000000..599792f
--- /dev/null
+++ b/durt/nodes/(-4117,13,-5765).lua
@@ -0,0 +1,36 @@
+--[[Departures North End]]--
+local arrivals_indicator = POS(-4107, 20, -5793)
+local departures_indicator = POS(-4107, 20, -5791)
+local road_loco_storage = POS(-4152,13,-5840)
+if not atc_arrow then --clean up RC from directing RC's
+ F.remove_rc_match("DLG_DIR_%S+_N")
+ return
+end
+if F.has_rc("DLG_COLLECT_DEPARTURES") then --road loco has coupled, ready to depart
+ F.indicator(departures_indicator, false)
+ F.remove_rc("DLG_COLLECT_DEPARTURES")
+ step_fc() -- move FC's up to prepare for Tyard classification
+ atc_send("SM")
+ return
+end
+-- --we'll deal with the yard shunter later
+if F.has_rc("DLG_SHUNTER") then
+ F.indicator(departures_indicator, true)
+ interrupt_pos(road_loco_storage,"departures")
+ split_off_locomotive("B0S0A0",1)
+-- if not F.indicator(arrivals_indicator) then --send shunter to its storage siding
+-- F.add_rc({
+-- "DLG_HS_N",
+-- "DLG_SHUNTER_Storage"
+-- })
+-- return
+-- end
+
+-- --else send shunter to arrivals to continue classification
+-- F.add_rc({
+-- "DLG_HS_N",
+-- "DLG_HS_N_AC",
+-- "DLG_DIR_Arrivals_SHUNT_N"
+-- })
+-- return
+end \ No newline at end of file