index
:
advtrains.git
atcjit
doc
l10n
luaatcdebug
master
new-ks
new-ks-orwell
profiler
route_prog_rework
techage
tracy
trainhud
trainhud-unifont
Advtrains mod for minetest.
orwell
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
advtrains_trai
local
d
=
os
.
date
()
local
m
=
d
.
min
if
event
.
train
then
atc_send
(
"B0WOL"
)
end
if
m
%
10
==
0
then
atc_send
(
"B0WOCD1RSM"
)
local
h
=
d
.
hour
local
mm
= (
m
+
10
)%
60
if
mm
<
10
and
m
>
10
then
h
=
h
+
1
end
digiline_send
(
"depmon"
,
"Train to | Kulbacki Land | Next dep.: | "
..
h
..
":"
..
mm
)
else
digiline_send
(
"depmon"
,
"Train to | Kulbacki Land | in "
..(
9
-(
m
%
10
))..
"m"
..(
59
-
d
.
sec
)..
"s"
)
interrupt
(
10
)
end