This commit is contained in:
2025-06-14 12:52:53 -04:00
parent cd5815b77c
commit c39daa5508
3 changed files with 23 additions and 6 deletions

View File

@@ -1,10 +1,16 @@
local function report()
local reactor = peripheral.find("fissionReactorLogicAdapter")
local function report(reactor)
if reactor then
return reactor.getTemperature()
return reactor.getCoolantFilledPercentage()
else
return "No reactor found"
end
end
return { report = report }
local function watch(reactor, monitor)
while true do
print("Coolant: " .. report(reactor))
sleep(1)
end
end
return { report = report, watch = watch }