Files
nova-corp/coolant_driver.lua
2025-06-14 12:55:26 -04:00

14 lines
299 B
Lua

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