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).lua23
1 files changed, 20 insertions, 3 deletions
diff --git a/durt/nodes/(1906,7,9136).lua b/durt/nodes/(1906,7,9136).lua
index df38109..03ae1a0 100644
--- a/durt/nodes/(1906,7,9136).lua
+++ b/durt/nodes/(1906,7,9136).lua
@@ -16,12 +16,21 @@ if event.approach and not event.has_entered then
end
if event.train and atc_arrow then
+ digiline_send("mine_counter_lcd",S.yards.WOA.mine_counter)
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.")
+ if S.yards.WOA.mine_count < 7 then -- send train back to yard
+ S.yards.WOA.mine_count = S.yards.WOA.mine_count + 1
+ print("WOA Mine Count: "..S.yards.WOA.mine_count)
+ atc_set_text_outside("Warmoneaye Mining Co.")
+ atc_send("B0WRD3SMA1")
+ else
+ S.yards.WOA.mine_count = 0
+ atc_send("B0")
+ atc_set_text_outside("Warmoneaye Mining Co.\nAwaiting More Overburden")
+ end
return
end
atc_set_text_outside("Warmoneaye Mining Co.\nLocomotive Switching Ends")
@@ -32,4 +41,12 @@ if event.train and atc_arrow then
atc_send("S4A1")
return
end
-end \ No newline at end of file
+end
+
+if event.digiline and atc_id then
+ if not F.has_rc("WOA_around_active") then
+ atc_set_text_outside("Warmoneaye Mining Co.")
+ atc_send("S0WRD3SMA1")
+ return
+ end
+end