updated
This commit is contained in:
@@ -5,11 +5,6 @@ local function getValue()
|
||||
return (reactor.getCoolantFilledPercentage() or 0) * 100
|
||||
end
|
||||
|
||||
local function color()
|
||||
local coolantLevel = getValue()
|
||||
return colors.black
|
||||
end
|
||||
|
||||
local function checkCoolantLevel()
|
||||
local coolantLevel = getValue()
|
||||
return true
|
||||
@@ -28,7 +23,7 @@ end
|
||||
|
||||
local function report()
|
||||
local value = getValue()
|
||||
local color = color()
|
||||
local color = colors.black
|
||||
monitor.setBackgroundColor(color)
|
||||
monitor.clearLine()
|
||||
monitor.write("Coolant: " .. value .. "%")
|
||||
|
||||
@@ -3,10 +3,6 @@ local function getValue()
|
||||
return reactor.getStatus() or false
|
||||
end
|
||||
|
||||
local function color()
|
||||
local value = getValue()
|
||||
return colors.black
|
||||
end
|
||||
|
||||
-- local function watch()
|
||||
-- while true do
|
||||
@@ -33,7 +29,7 @@ end
|
||||
|
||||
local function report()
|
||||
local value = getValue()
|
||||
local color = color()
|
||||
local color = colors.black
|
||||
monitor.setBackgroundColor(color)
|
||||
monitor.clearLine()
|
||||
monitor.write("Reactor Status: " .. tostring(value))
|
||||
|
||||
@@ -45,7 +45,7 @@ end
|
||||
|
||||
local function report()
|
||||
local value = getValue()
|
||||
local color = color()
|
||||
local color = color.black
|
||||
monitor.setBackgroundColor(color)
|
||||
monitor.clearLine()
|
||||
monitor.write("Temperature: " .. value .. "F")
|
||||
|
||||
Reference in New Issue
Block a user