summaryrefslogtreecommitdiff
path: root/Tyard/nodes/(-4035,12,-2655).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:42 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:42 +0200
commit572b186e28ddc2a630613765c0f0780b4664380f (patch)
treee93412c97c577b04bbf12749bfe61470e001063a /Tyard/nodes/(-4035,12,-2655).lua
parent5c7f77725394d47ce0b907aabf885ea207a507bd (diff)
downloadluaatc_envs-572b186e28ddc2a630613765c0f0780b4664380f.tar.gz
luaatc_envs-572b186e28ddc2a630613765c0f0780b4664380f.tar.bz2
luaatc_envs-572b186e28ddc2a630613765c0f0780b4664380f.zip
State at 2024-10-15HEADmaster
Diffstat (limited to 'Tyard/nodes/(-4035,12,-2655).lua')
-rw-r--r--Tyard/nodes/(-4035,12,-2655).lua28
1 files changed, 0 insertions, 28 deletions
diff --git a/Tyard/nodes/(-4035,12,-2655).lua b/Tyard/nodes/(-4035,12,-2655).lua
deleted file mode 100644
index f08c2fe..0000000
--- a/Tyard/nodes/(-4035,12,-2655).lua
+++ /dev/null
@@ -1,28 +0,0 @@
---EOL code
-local this_dir = true -- true = F.dir arrow points north
-
-if not F.yard_active() then return end
-if atc_arrow then
- if F.dir() == this_dir then --train has bounced and needs to leave the rake or depart with it
- if F.has_rc("TY_LAST_CLASS") then -- take the whole rake to the exit
- F.remove_rc({"TY_LAST_CLASS"})
- F.add_rc({"TY_DEPART"})
- split_off_locomotive("A0B0")
- elseif not F.has_rc("TY_FINAL_COLLECT") then
- -- disconnect loco and return to pickup
- split_off_locomotive("A0B0")
- F.add_rc({"TY_PICKUP"})
- end --if has FINAL_COLLECT then don't split off the loco. take the full rake
- F.add_rc({"TY_HEADSHUNT"})
- else --train needs to bounce
- atc_send("B0WRD1S4")
- end
-else
- if F.dir() == this_dir then
- --train is clasifying wagons, let it pass and couple to the rest of the rake
- F.remove_rc_match("TY_CLASS_%S+")
- else --this should never come into play as it means the train has entered from the wrong end somehow
- atc_send("BBOL") --stop the train and open the doors (if available) to signify assistance required
- F.error(true)
- end
-end \ No newline at end of file