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/(-1419,11,-2545).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/(-1419,11,-2545).lua')
-rw-r--r-- | durt/nodes/(-1419,11,-2545).lua | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/durt/nodes/(-1419,11,-2545).lua b/durt/nodes/(-1419,11,-2545).lua index c17e7b9..7926f0b 100644 --- a/durt/nodes/(-1419,11,-2545).lua +++ b/durt/nodes/(-1419,11,-2545).lua @@ -1,12 +1,16 @@ -- S27 Export Arrivals Splitter -if event.train and atc_arrow then - if not F.has_rc("S27_EXPORT_ACTIVE") then return end - local fc = split_at_fc("A0B0",1) or "DEPART" - F.add_rc({ - "S27_EXP_HS_N", - "S27_"..fc - }) - if fc == "DEPART" then - F.add_rc("S27_EXP_HS_N_AC") - end +if not F.has_rc("S27_EXPORT_ACTIVE") then return end + +if not atc_arrow then -- loco has rejoined from headshunt + F.remove_rc_match("S27_EXP_DIR_%S+") + return +end + +local fc = split_at_fc("A0B0",1) or "DEPART" --should be either SAND_RAMP or DIRT_LOAD. anything else goes to departures +F.add_rc({ + "S27_EXP_HS_N", + "S27_EXP_DIR_"..fc +}) +if fc == "DEPART" then + F.add_rc("S27_EXP_HS_N_AC") end
\ No newline at end of file |