diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-11-01 00:00:01 +0100 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-11-01 00:00:01 +0100 |
commit | 2d065ce9bedc6c7c0740a9148e96463749f8bf24 (patch) | |
tree | b341c4c48a9132d6c31d0564fa4ba478aaf78e15 /durt/nodes/(-1442,11,-2568).lua | |
parent | c019cfb8391dae72a1480e6d8ae8f06ff3d702ee (diff) | |
download | luaatc_envs-2d065ce9bedc6c7c0740a9148e96463749f8bf24.tar.gz luaatc_envs-2d065ce9bedc6c7c0740a9148e96463749f8bf24.tar.bz2 luaatc_envs-2d065ce9bedc6c7c0740a9148e96463749f8bf24.zip |
State at 2024-11-01
Diffstat (limited to 'durt/nodes/(-1442,11,-2568).lua')
-rw-r--r-- | durt/nodes/(-1442,11,-2568).lua | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/durt/nodes/(-1442,11,-2568).lua b/durt/nodes/(-1442,11,-2568).lua index 6b7502e..8a09604 100644 --- a/durt/nodes/(-1442,11,-2568).lua +++ b/durt/nodes/(-1442,11,-2568).lua @@ -1,25 +1,23 @@ --S27 Export Arrivals -if event.train and atc_arrow then - if not F.has_rc("S27_SHUNTER") then return end - if train_length() == 1 then - F.add_rc({ - "S27_LOCOSTORE", - "S27_EXP_HS_N", - "S27_EXP_AROUND", - "S27_EXP_HS_S" - }) - atc_send("S0WD3RS3") - return - end - if not F.has_rc("S27_EXPORT_ACTIVE") then - split_off_locomotive("A0B0",1) - F.add_rc({ - "S27_EXPORT_ACTIVE", - "S27_EXP_HS_S", - "S27_EXP_AROUND", - }) - return - end - atc_send("S0WD3RS1") +if not atc_arrow then return end +if not F.has_rc("S27_SHUNTER") then return end +if train_length() == 1 then --return loco to storage via N headshunt (backwards) + F.add_rc({ + "S27_EXP_LOCOSTORE", + "S27_EXP_HS_N", + }) + atc_send("S0WD3RS3") return -end
\ No newline at end of file +end +if not F.has_rc("S27_EXPORT_ACTIVE") then --train has just arrived. run around + split_off_locomotive("A0B0",1) + F.add_rc({ + "S27_EXPORT_ACTIVE", + "S27_EXP_HS_S", + "S27_EXP_AROUND", + "S27_EXP_DIR_ARRIVALS" + }) + return +end +F.remove("S27_EXP_AROUND") +atc_send("S0WD3RS1") --bounce the train
\ No newline at end of file |