From ddaee135d42ede8b4970f2c2cce973f5c03234f1 Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:52:21 +0200 Subject: State at 2020-09-28 --- durt/nodes/(-3821,18,-4761).lua | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'durt/nodes/(-3821,18,-4761).lua') diff --git a/durt/nodes/(-3821,18,-4761).lua b/durt/nodes/(-3821,18,-4761).lua index 14c0d7c..64f31ae 100644 --- a/durt/nodes/(-3821,18,-4761).lua +++ b/durt/nodes/(-3821,18,-4761).lua @@ -1,14 +1,10 @@ -if atc_arrow then - if (event.type == "train") then - atc_send("B0") - setstate("SFH-T2-S", "cr") - set_rc("sfh_shunt") - interrupt(5, "proceed") - elseif (event.type == "int") then - set_route("sfh-T1-headshunt", "Enter Headshunt") - split_at_index(2, "") - atc_send("S2") - end -else - atc_send("B0WRS1") -end \ No newline at end of file +if (event.type == "train") then + local rc = get_rc() + if rc == "sfh_service" then + set_autocouple() atc_send("B0") set_rc("sfh_shunt") interrupt(5, "proceed") + else atc_send("B0WD3OCRSM") + unset_autocouple() + set_rc("sfh_service") + set_line("SHBL") + atc_set_text_outside("Sulfur Hills Branch Line -> Desert Junction") end elseif (event.type == "int") then set_route("sfh-T1-headshunt", "Enter Headshunt") split_off_locomotive("B0OL") + setstate("SFH-T2-S", "cr") atc_send("S2") end \ No newline at end of file -- cgit v1.2.3