diff --git a/reactor.lua b/reactor.lua index 7b8e32a..cef72a9 100644 --- a/reactor.lua +++ b/reactor.lua @@ -262,7 +262,7 @@ function reactorControl() if currentFlow ~= targetOutput then local diff = targetOutput - currentFlow local absDiff = math.abs(diff) - local step = math.min(absDiff, math.max(5000, absDiff / 20)) + local step = math.min(absDiff, math.max(1000, absDiff / 60)) if diff > 0 then local fieldPercent = math.ceil(ri.fieldStrength / ri.maxFieldStrength * 10000) * 0.01 if fieldPercent >= 20 then @@ -490,8 +490,8 @@ function updateReactorInfo() local currentFlow = fluxgate.getSignalLowFlow() local outputText if currentFlow ~= targetOutput then - local arrow = currentFlow < targetOutput and " ▲" or " ▼" - outputText = f.format_int(currentFlow).." → "..f.format_int(targetOutput).." rf/t"..arrow + local dir = currentFlow < targetOutput and " +" or " -" + outputText = f.format_int(currentFlow).." > "..f.format_int(targetOutput).." rf/t"..dir else outputText = f.format_int(currentFlow).." rf/t" end @@ -517,7 +517,7 @@ function drawUpdatedText(x, y, label, value, color, labelColor) local key = label if lastValues[key] ~= value then labelColor = labelColor or colors.white - f.draw_text_lr(mon, x, y, 3, " ", " ", colors.white, color, colors.black) + f.draw_line(mon, x, y, monX - x, colors.black) f.draw_text_lr(mon, x, y, 3, label, value, labelColor, color, colors.black) lastValues[key] = value end