From 24b4fb4f8fa0392c8a44aefa734ff6d558f3583d Mon Sep 17 00:00:00 2001 From: Star Rauchenberger <fefferburbia@gmail.com> Date: Mon, 24 Feb 2025 15:26:02 -0500 Subject: Minor fixes/safety stuff --- Requirements.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Requirements.cs') diff --git a/Requirements.cs b/Requirements.cs index 1613a47..954d1fe 100644 --- a/Requirements.cs +++ b/Requirements.cs @@ -113,17 +113,23 @@ namespace ManifoldGardenArchipelago public override Decision Check() { + bool sawMaybe = false; + foreach (var requirement in _requirements) { Decision decision = requirement.Check(); - if (decision != Decision.No) + if (decision == Decision.Yes) { return decision; } + else if (decision == Decision.Maybe) + { + sawMaybe = true; + } } - return Decision.No; + return sawMaybe ? Decision.Maybe : Decision.No; } public override string ToString() -- cgit 1.4.1