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