diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:55:06 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:55:06 +0200 |
commit | 35f667c3a11b2c1771e43769ae14c69c1acf0489 (patch) | |
tree | 24c7776f62f1f3b9ce08a6cadad21a69e95a411f | |
parent | 3559f845decdc34638535932d1226f95be349ffb (diff) | |
download | luaatc_envs-35f667c3a11b2c1771e43769ae14c69c1acf0489.tar.gz luaatc_envs-35f667c3a11b2c1771e43769ae14c69c1acf0489.tar.bz2 luaatc_envs-35f667c3a11b2c1771e43769ae14c69c1acf0489.zip |
State at 2021-11-15
-rw-r--r-- | ers/nodes/(1657,1,1240).lua | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/ers/nodes/(1657,1,1240).lua b/ers/nodes/(1657,1,1240).lua index ecabdd1..f777e92 100644 --- a/ers/nodes/(1657,1,1240).lua +++ b/ers/nodes/(1657,1,1240).lua @@ -3,21 +3,25 @@ local show_print = false if event.train then if atc_arrow then local passive_name = "ErsDepotTurnaround" - local track_route = "" - local can_do_route = false + local track_route = "01 EXTRA" + local can_do_route1 = false + local can_do_route2 = false F.train_duration("start") F.train_info(passive_name, show_print) if F.does_train_have_rc("ERSTAZIDEPOTUNLOAD") then track_route = "03 UNLOADING TRACK" - F.send_route(passive_name, track_route, show_print) + elseif F.does_train_have_rc("FERTRUNNER") then + track_route = "03 UNLOADING TRACK" elseif F.does_train_have_rc("ERSTAZITST") then track_route = "02 LOADING TRACK" - F.send_route(passive_name, track_route, show_print) - else + end + + can_do_route1 = F.send_route(passive_name, track_route, show_print) + if can_do_route1 == false then track_route = "01 EXTRA" - can_do_route = F.send_route(passive_name, track_route, show_print) - if can_do_route == false then + can_do_route2 = F.send_route(passive_name, track_route, show_print) + if can_do_route2 == false then track_route = "04 EXTRA" F.send_route(passive_name, track_route, show_print) end |