.
This commit is contained in:
parent
0c2cdae034
commit
e38de82efb
@ -454,10 +454,13 @@ local function processStateMachine()
|
||||
return
|
||||
end
|
||||
|
||||
-- Reactor is no longer cold - clear charge request flag
|
||||
-- Clear charge request flag once field is sufficiently charged
|
||||
if chargeRequested then
|
||||
chargeRequested = false
|
||||
print("[INFO] Reactor started, charge request cleared")
|
||||
local fieldPercent = fieldStrength -- Already calculated above as ratio
|
||||
if fieldPercent >= CONFIG.charge_field_target then
|
||||
chargeRequested = false
|
||||
print("[INFO] Field charged to " .. string.format("%.1f%%", fieldPercent * 100) .. ", charge request cleared")
|
||||
end
|
||||
end
|
||||
|
||||
if reactorStatus == "cooling" then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user