Files
nova-corp/coolant_driver.lua
2025-06-14 12:52:53 -04:00

16 lines
333 B
Lua

local function report(reactor)
if reactor then
return reactor.getCoolantFilledPercentage()
else
return "No reactor found"
end
end
local function watch(reactor, monitor)
while true do
print("Coolant: " .. report(reactor))
sleep(1)
end
end
return { report = report, watch = watch }