From e40dbee06a652d0b25adfa89896b18c61004373f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 24 Feb 2025 15:25:39 -0500 Subject: Better full garden detection for Akshardham --- GameData.cs | 5 +++++ Requirements.cs | 13 +++++++++++++ game_data.yaml | 14 +------------- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/GameData.cs b/GameData.cs index f8adb17..a111b6a 100644 --- a/GameData.cs +++ b/GameData.cs @@ -215,6 +215,11 @@ namespace ManifoldGardenArchipelago } } + if (yamlReq.ContainsKey("full_garden") && (string)yamlReq["full_garden"] == "true") + { + reqs.Add(new FullGardenRequirement()); + } + if (yamlReq.ContainsKey("or")) { List unionReq = []; diff --git a/Requirements.cs b/Requirements.cs index 81ecf36..1613a47 100644 --- a/Requirements.cs +++ b/Requirements.cs @@ -326,6 +326,19 @@ namespace ManifoldGardenArchipelago } } + public class FullGardenRequirement : Requirement + { + public override Decision Check() + { + return GameManager.MandalaManager.PlacedGodCubes.Count == 6 ? Decision.Yes : Decision.No; + } + + public override string ToString() + { + return "FullGarden"; + } + } + public class InvertedRequirement : Requirement { private readonly Requirement _requirement; diff --git a/game_data.yaml b/game_data.yaml index fe5d99a..d29c1f3 100644 --- a/game_data.yaml +++ b/game_data.yaml @@ -772,16 +772,4 @@ World_071_AkshardhamTemple_Optimized: lasers: 49: waterwheel: 0 - socket: - - scene: World_044_CubicSpaceDivision_Optimized - index: 0 - - scene: World_044_CubicSpaceDivision_Optimized - index: 1 - - scene: World_044_CubicSpaceDivision_Optimized - index: 2 - - scene: World_044_CubicSpaceDivision_Optimized - index: 3 - - scene: World_044_CubicSpaceDivision_Optimized - index: 4 - - scene: World_044_CubicSpaceDivision_Optimized - index: 5 + full_garden: true -- cgit 1.4.1