This commit is contained in:
Navid Sassan 2025-12-09 23:12:52 +01:00
parent a0d003ad10
commit e38fe600f7

View File

@ -931,6 +931,20 @@ local function updateDisplay()
mon.write("Output (Power): ") mon.write("Output (Power): ")
mon.setTextColor(colors.lime) mon.setTextColor(colors.lime)
mon.write(formatNumber(outputFlow) .. " RF/t") mon.write(formatNumber(outputFlow) .. " RF/t")
y = y + 1
-- Net power gain
local netPower = outputFlow - inputFlow
mon.setCursorPos(1, y)
mon.setTextColor(colors.white)
mon.write("Net Power: ")
if netPower >= 0 then
mon.setTextColor(colors.lime)
mon.write("+" .. formatNumber(netPower) .. " RF/t")
else
mon.setTextColor(colors.red)
mon.write(formatNumber(netPower) .. " RF/t")
end
y = y + 2 y = y + 2
-- Instructions -- Instructions