summaryrefslogtreecommitdiff
path: root/auto_yards/nodes/(-584,26,2481).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-11-02 00:00:01 +0100
committerautocommitter <autocommitter@linux-forks.de>2024-11-02 00:00:01 +0100
commit91cc36ecd4e2c68040642dbaf0b0dc46106df61c (patch)
tree9c663a4233ddc831f6c3d0ed10a4d8166d4b93db /auto_yards/nodes/(-584,26,2481).lua
parent2d065ce9bedc6c7c0740a9148e96463749f8bf24 (diff)
downloadluaatc_envs-91cc36ecd4e2c68040642dbaf0b0dc46106df61c.tar.gz
luaatc_envs-91cc36ecd4e2c68040642dbaf0b0dc46106df61c.tar.bz2
luaatc_envs-91cc36ecd4e2c68040642dbaf0b0dc46106df61c.zip
State at 2024-11-02
Diffstat (limited to 'auto_yards/nodes/(-584,26,2481).lua')
-rw-r--r--auto_yards/nodes/(-584,26,2481).lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/auto_yards/nodes/(-584,26,2481).lua b/auto_yards/nodes/(-584,26,2481).lua
index 46e3050..2995aaa 100644
--- a/auto_yards/nodes/(-584,26,2481).lua
+++ b/auto_yards/nodes/(-584,26,2481).lua
@@ -1,2 +1,19 @@
+-- Cannery departures lane modified
+
+local ind = POS(-594,26,2488) --notification indicator
+
+if F.has_rc("CAN_INTRA_SHUFFLE") then
+ if not atc_arrow then atc_send("A0S1CplD2S1") return end
+ split_off_locomotive("A0B0")
+ F.remove_rc("CAN_CLASS_DEPARTURES")
+ F.add_rc({
+ "CAN_HS_W",
+ "CAN_send_to_locostore"
+ })
+ atc_send("A1S3")
+ F.indicator(ind,true) --re-enable the notification as we haven't actually left the yard yet
+ F.indicator(S.yards.CAN.active_indicator_pos, false) -- disable the active indicator
+ return
+end
-- EOL
F.lane_EOL("CAN",true) \ No newline at end of file