Files
nova-corp/status_driver.lua
2025-06-14 17:10:27 -04:00

28 lines
549 B
Lua

local function getValue()
return reactor.getStatus() or false
end
local function color()
local value = getValue()
return colors.black
end
local function watch()
while true do
checkStatus()
end
end
function checkStatus()
local value = getValue()
end
local function report()
local value = getValue()
local color = color()
monitor.setBackgroundColor(color)
monitor.clearLine()
monitor.write("Reactor Status: " .. tostring(value))
end
return { report = report, watch = watch }