updated
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
local function getValue(reactor)
|
||||
return reactor.getSteamFilledPercentage() * 100
|
||||
local function getValue(target)
|
||||
return target.getSteamFilledPercentage() * 100
|
||||
end
|
||||
|
||||
local function color(reactor)
|
||||
local value = getValue(reactor)
|
||||
local function color(target)
|
||||
local value = getValue(target)
|
||||
return colors.black
|
||||
end
|
||||
|
||||
local function watch(reactor, monitor)
|
||||
print("Turbine Steam Filled: " .. getValue(reactor))
|
||||
local function watch(target, monitor)
|
||||
print("Turbine Steam Filled: " .. getValue(target))
|
||||
end
|
||||
|
||||
local function report(reactor, monitor)
|
||||
local color = color(reactor)
|
||||
local function report(target, monitor)
|
||||
local color = color(target)
|
||||
monitor.setBackgroundColor(color)
|
||||
monitor.clearLine()
|
||||
monitor.write("Turbine Steam Filled: " .. getValue(reactor) .. "%")
|
||||
monitor.write("Turbine Steam Filled: " .. getValue(target) .. "%")
|
||||
end
|
||||
return { report = report, watch = watch }
|
||||
Reference in New Issue
Block a user