using ReactorMaintenance.Simulation;

namespace ReactorMaintenance.Simulation.Hazards;

public sealed class StabilityCollapseHazard : Hazard
{
    public override IEnumerable<Forecast> Predict(LevelState level, int turns)
    {
        if (level.Global is { Lost: true, Status: "FACILITY STABILITY COLLAPSE" })
            yield return new(EFailureKind.StabilityCollapse, null, turns, "FACILITY STABILITY COLLAPSE APPROACHING");
    }
}