summaryrefslogtreecommitdiff
path: root/durt/nodes/(1906,7,9136).lua
diff options
context:
space:
mode:
Diffstat (limited to 'durt/nodes/(1906,7,9136).lua')
-rw-r--r--durt/nodes/(1906,7,9136).lua33
1 files changed, 33 insertions, 0 deletions
diff --git a/durt/nodes/(1906,7,9136).lua b/durt/nodes/(1906,7,9136).lua
new file mode 100644
index 0000000..a80aa6a
--- /dev/null
+++ b/durt/nodes/(1906,7,9136).lua
@@ -0,0 +1,33 @@
+local around_rc_list = {
+ "WOA_around_active",
+ "WOA_rev_north",
+ "WOA_around_station",
+ "WOA_rev_south",
+ "WOA_rejoin_overburden"
+}
+
+__approach_callback_mode = 1
+
+if event.approach and not event.has_entered then
+ atc_set_ars_disable(true)
+ atc_set_lzb_tsr(1)
+ return
+end
+
+if event.train and atc_arrow then
+ if F.has_rc("WOA_mine_around") then
+ if F.has_rc("WOA_around_active") then
+ F.remove_rc(around_rc_list)
+ unset_autocouple()
+ atc_send("B0WRD3SMA1")
+ atc_set_text_outside("Warmonaye Mining Co.")
+ return
+ end
+ atc_set_text_outside("Warmoneaye Mining Co.\nLocomotive Switching Ends")
+ split_off_locomotive("B0A0")
+ set_autocouple()
+ F.add_rc(around_rc_list)
+ atc_send("S4A1")
+ return
+ end
+end \ No newline at end of file