diff options
author | cheapie <no-email-for-you@example.com> | 2023-08-04 16:46:03 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2023-08-04 16:46:03 -0500 |
commit | 12d9182bd5c50013dd76885cf8395b9a1a4f84a6 (patch) | |
tree | 7e988aeaf7fec82f490efafab699156a8ac35854 /controllerfw.lua | |
parent | 6e3377a70d9bfc8311cfbec69f498b8140068eb8 (diff) | |
download | celevator-12d9182bd5c50013dd76885cf8395b9a1a4f84a6.tar celevator-12d9182bd5c50013dd76885cf8395b9a1a4f84a6.tar.gz celevator-12d9182bd5c50013dd76885cf8395b9a1a4f84a6.tar.bz2 celevator-12d9182bd5c50013dd76885cf8395b9a1a4f84a6.tar.xz celevator-12d9182bd5c50013dd76885cf8395b9a1a4f84a6.zip |
Add lanterns
Diffstat (limited to 'controllerfw.lua')
-rw-r--r-- | controllerfw.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/controllerfw.lua b/controllerfw.lua index 8285583..2640af2 100644 --- a/controllerfw.lua +++ b/controllerfw.lua @@ -732,4 +732,9 @@ local arrowenabled = { mem.piuparrow = mem.drive.status.vel > 0 and arrowenabled[mem.carstate] mem.pidownarrow = mem.drive.status.vel < 0 and arrowenabled[mem.carstate] +mem.lanterns = {} +if mem.carstate == "normal" and (mem.doorstate == "open" or mem.doorstate == "opening") then + mem.lanterns[getpos()] = mem.direction +end + return pos,mem |