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