aboutsummaryrefslogtreecommitdiff
path: root/advtrains_signals_ks/init.lua
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2025-01-07 21:54:31 +0100
committerorwell <orwell@bleipb.de>2025-01-07 21:54:31 +0100
commit38acdbbe1d3a9f2c91ced0281cd58b6c29cff401 (patch)
tree9b68f376872e4e6a142f01aa783d23b6983af6f3 /advtrains_signals_ks/init.lua
parentfed637080a4dcfee889bdfa30ca4744018b92e00 (diff)
downloadadvtrains-38acdbbe1d3a9f2c91ced0281cd58b6c29cff401.tar.gz
advtrains-38acdbbe1d3a9f2c91ced0281cd58b6c29cff401.tar.bz2
advtrains-38acdbbe1d3a9f2c91ced0281cd58b6c29cff401.zip
Change logic for pure distant signals: remain assigned even after train clears TCB (mirror real life behavior)
Diffstat (limited to 'advtrains_signals_ks/init.lua')
-rwxr-xr-xadvtrains_signals_ks/init.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/advtrains_signals_ks/init.lua b/advtrains_signals_ks/init.lua
index eb23930..7c78dea 100755
--- a/advtrains_signals_ks/init.lua
+++ b/advtrains_signals_ks/init.lua
@@ -146,6 +146,15 @@ local applyaspectf_distant = function(rot)
end
end
+-- Main aspects distant signal
+-- Only one aspect for "expect free". Whether green or yellow lamp is shown and which speed indicator is determined by remote signal
+local mainaspects_dst = {
+ {
+ name = "expectclear",
+ description = "Expect Clear",
+ },
+}
+
--Rangiersignal
local applyaspectf_ra = function(rot)
-- we get here the full main_aspect table
@@ -313,10 +322,11 @@ for _, rtab in ipairs({
drop = "advtrains_signals_ks:vs_slow_0",
inventory_image = "advtrains_signals_ks_vs_inv.png",
advtrains = {
- -- no mainaspect
+ main_aspects = mainaspects_dst,
apply_aspect = applyaspectf_distant(rot),
get_aspect_info = afunc,
route_role = "distant",
+ pure_distant = true,
trackworker_next_rot = "advtrains_signals_ks:vs_"..typ.."_"..rtab.nextrot,
trackworker_rot_incr_param2 = (rot=="60")
},