summaryrefslogtreecommitdiff
path: root/durt/nodes/(-4626,7,-6638).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:56:25 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:56:25 +0200
commite34f1bd16618a448527ee1c9178c8cee04f8e3df (patch)
treedc9f2c9489d01ee93122dae33041a2d0930f72b0 /durt/nodes/(-4626,7,-6638).lua
parent29dbe3d4d02010ae3d6c289a4fee01709008c7c0 (diff)
downloadluaatc_envs-e34f1bd16618a448527ee1c9178c8cee04f8e3df.tar.gz
luaatc_envs-e34f1bd16618a448527ee1c9178c8cee04f8e3df.tar.bz2
luaatc_envs-e34f1bd16618a448527ee1c9178c8cee04f8e3df.zip
State at 2022-03-06
Diffstat (limited to 'durt/nodes/(-4626,7,-6638).lua')
-rw-r--r--durt/nodes/(-4626,7,-6638).lua18
1 files changed, 7 insertions, 11 deletions
diff --git a/durt/nodes/(-4626,7,-6638).lua b/durt/nodes/(-4626,7,-6638).lua
index 17a83e8..f602f9b 100644
--- a/durt/nodes/(-4626,7,-6638).lua
+++ b/durt/nodes/(-4626,7,-6638).lua
@@ -1,23 +1,19 @@
local signal = POS(-4626,7,-6616)
if event.train and atc_arrow then
- local rc = (get_rc() or "")
- if rc:match("BFT_shunt_platforms") then
+ if F.has_rc("BFT_shunt_platforms") then
local control = {"B0WD2A0R"}
- if rc:match("BFT_shunt_Platform1") then
+ if F.has_rc("BFT_shunt_Platform1") then
set_route(signal,"SHUNT Platform 1")
control[2] = "S3CplS1"
- elseif rc:match("BFT_shunt_Track2") then
+ elseif F.has_rc("BFT_shunt_Track2") then
set_route(signal,"SHUNT Track 2")
control[2] = "S3CplS1"
- elseif rc:match("BFT_shunt_around_Track2") then
- set_route(signal,"Around via Track2")
+ elseif F.has_rc("BFT_shunt_around_Track2") then
+ set_route(signal,"Around via Track 2")
control[2] = "S4"
end
-
- if #control > 1 then
- control[1] = table.concat(control,"")
- end
- atc_send(control[1])
+ control = table.concat(control,"")
+ atc_send(control)
return
end
end \ No newline at end of file