From 5c7f77725394d47ce0b907aabf885ea207a507bd Mon Sep 17 00:00:00 2001 From: autocommitter Date: Tue, 15 Oct 2024 22:37:32 +0200 Subject: State at 2024-10-15 --- durt/nodes/(-4120,13,-5762).lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 durt/nodes/(-4120,13,-5762).lua (limited to 'durt/nodes/(-4120,13,-5762).lua') diff --git a/durt/nodes/(-4120,13,-5762).lua b/durt/nodes/(-4120,13,-5762).lua new file mode 100644 index 0000000..17b5acb --- /dev/null +++ b/durt/nodes/(-4120,13,-5762).lua @@ -0,0 +1,24 @@ +--[[Arrivals North End]]-- +local arrivals_indicator = POS(-4107, 20, -5793) + +if not event.train then return end +if atc_arrow then + if not F.has_rc("DLG_SHUNTER") then return end + local pre_split_length = train_length() + local split_fc = split_at_fc("A0B0S0", 7) + local post_split_length = train_length() + + + local add_rc = { + "DLG_HS_N", + "DLG_HS_N_AC", + split_fc ~= "" and "DLG_CLASS_"..split_fc or ""} + + if pre_split_length == post_split_length then --last collection, haven't had to split anything off + F.indicator(arrivals_indicator, false) + table.insert(add_rc, "DLG_FINAL_ARRIVAL") + end + F.add_rc(add_rc) + return +end +F.remove_rc_match("DLG_DIR_%S+_N") \ No newline at end of file -- cgit v1.2.3