This commit is contained in:
2025-06-14 15:22:05 -04:00
parent 5ca8c6d222
commit 495de6bf3e
5 changed files with 45 additions and 48 deletions

View File

@@ -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 }