From c7f5b9d8604a57603b3ec5b235c8cb4b1b7eeaf6 Mon Sep 17 00:00:00 2001 From: itzmarkoni Date: Sat, 14 Jun 2025 14:53:17 -0400 Subject: [PATCH] updated --- turbine_driver.lua | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/turbine_driver.lua b/turbine_driver.lua index bbf8753..cd1e4cc 100644 --- a/turbine_driver.lua +++ b/turbine_driver.lua @@ -1,5 +1,5 @@ local function getValue(reactor) - return reactor.getStatus() or false + return reactor.getSteamFilledPercentage() * 100 end local function color(reactor) @@ -8,19 +8,13 @@ local function color(reactor) end local function watch(reactor, monitor) - local value = getValue(reactor) - print("Status: " .. tostring(value)) - monitor.clear() - isWarningState = true - sleep(5) - isWarningState = false + print("Turbine Steam Filled: " .. getValue(reactor)) end local function report(reactor, monitor) - local value = getValue(reactor) local color = color(reactor) monitor.setBackgroundColor(color) monitor.clearLine() - monitor.write("Reactor Status: " .. tostring(value)) + monitor.write("Turbine Steam Filled: " .. getValue(reactor) .. "%") end return { report = report, watch = watch } \ No newline at end of file