Clarify generator control and turbine status

This commit is contained in:
Codex Agent
2025-11-22 22:57:31 +01:00
parent c30c838fcc
commit fb1276f39f
2 changed files with 5 additions and 2 deletions

View File

@@ -363,7 +363,9 @@ class Reactor:
turbine_state = state.turbines[idx]
if idx in active_indices:
turbine.step(state.secondary_loop, turbine_state, steam_power_mw=power_per_unit, dt=dt)
if turbine_state.electrical_output_mw < max(1.0, power_per_unit * 0.7):
if power_per_unit <= 0.0 and turbine_state.electrical_output_mw < 0.1:
turbine_state.status = "OFF"
elif turbine_state.electrical_output_mw < max(0.5, power_per_unit * 0.5):
turbine_state.status = "STARTING"
else:
turbine_state.status = "RUN"