This commit is contained in:
2025-06-14 14:04:30 -04:00
parent f015791927
commit c88a708b38
3 changed files with 6 additions and 16 deletions

View File

@@ -1,12 +1,6 @@
local maxValue = 100
local minValue = 0
local function configureReport(monitor)
local x,y = monitor.getCursorPos()
monitor.setCursorPos(x, y + 1)
monitor.clearLine()
end
local function getValue(reactor)
return (reactor.getCoolantFilledPercentage() or 0) * 100
end
@@ -32,7 +26,6 @@ end
local function report(reactor, monitor)
local value = getValue(reactor)
local color = color(reactor)
configureReport(monitor)
monitor.setBackgroundColor(color)
monitor.write("Coolant: " .. value .. "%")
end