full line clear, slower ramp (60 steps), safe ascii chars

This commit is contained in:
2026-07-18 21:47:55 +02:00
parent 34e0117626
commit a79ca56e97
+4 -4
View File
@@ -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