updated
This commit is contained in:
@@ -11,6 +11,18 @@ local function getValue(reactor)
|
||||
return (reactor.getCoolantFilledPercentage() or 0) * 100
|
||||
end
|
||||
|
||||
local function configureReport(monitor)
|
||||
local x,y = monitor.getCursorPos()
|
||||
monitor.setCursorPos(x, y + 1)
|
||||
monitor.clearLine()
|
||||
end
|
||||
|
||||
local function color(reactor)
|
||||
local coolantLevel = getValue(reactor)
|
||||
return colors.black
|
||||
end
|
||||
|
||||
|
||||
local function watch(reactor, monitor)
|
||||
local coolantLevel = getValue(reactor)
|
||||
print("Coolant: " .. coolantLevel)
|
||||
@@ -25,15 +37,5 @@ local function report(reactor, monitor)
|
||||
monitor.write("Coolant: " .. value .. "%")
|
||||
end
|
||||
|
||||
local function configureReport(monitor)
|
||||
local x,y = monitor.getCursorPos()
|
||||
monitor.setCursorPos(x, y + 1)
|
||||
monitor.clearLine()
|
||||
end
|
||||
|
||||
local function color(reactor)
|
||||
local coolantLevel = getValue(reactor)
|
||||
return colors.black
|
||||
end
|
||||
|
||||
return { report = report, watch = watch}
|
||||
Reference in New Issue
Block a user