using ReactorMaintenance.Simulation;

namespace ReactorMaintenance.Simulation.Hazards;

public sealed class MeltdownHazard : Hazard
{
    public override IEnumerable<Forecast> Predict(LevelState level, int turns)
    {
        if (level.Global is { Lost: true, Status: "CORE MELTDOWN" })
            yield return new(EFailureKind.Meltdown, null, turns, "CORE MELTDOWN APPROACHING");
    }
}