diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-02-24 15:25:39 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-02-24 15:25:39 -0500 |
| commit | e40dbee06a652d0b25adfa89896b18c61004373f (patch) | |
| tree | 13474cda82a659215af1bc4375a73d2ac867fbc7 | |
| parent | b5dc753b6a74c8fb98ff35a348c286df24c3248e (diff) | |
| download | manifold-garden-archipelago-e40dbee06a652d0b25adfa89896b18c61004373f.tar.gz manifold-garden-archipelago-e40dbee06a652d0b25adfa89896b18c61004373f.tar.bz2 manifold-garden-archipelago-e40dbee06a652d0b25adfa89896b18c61004373f.zip | |
Better full garden detection for Akshardham
| -rw-r--r-- | GameData.cs | 5 | ||||
| -rw-r--r-- | Requirements.cs | 13 | ||||
| -rw-r--r-- | 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 | |||
| 215 | } | 215 | } |
| 216 | } | 216 | } |
| 217 | 217 | ||
| 218 | if (yamlReq.ContainsKey("full_garden") && (string)yamlReq["full_garden"] == "true") | ||
| 219 | { | ||
| 220 | reqs.Add(new FullGardenRequirement()); | ||
| 221 | } | ||
| 222 | |||
| 218 | if (yamlReq.ContainsKey("or")) | 223 | if (yamlReq.ContainsKey("or")) |
| 219 | { | 224 | { |
| 220 | List<Requirement> unionReq = []; | 225 | List<Requirement> 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 | |||
| 326 | } | 326 | } |
| 327 | } | 327 | } |
| 328 | 328 | ||
| 329 | public class FullGardenRequirement : Requirement | ||
| 330 | { | ||
| 331 | public override Decision Check() | ||
| 332 | { | ||
| 333 | return GameManager.MandalaManager.PlacedGodCubes.Count == 6 ? Decision.Yes : Decision.No; | ||
| 334 | } | ||
| 335 | |||
| 336 | public override string ToString() | ||
| 337 | { | ||
| 338 | return "FullGarden"; | ||
| 339 | } | ||
| 340 | } | ||
| 341 | |||
| 329 | public class InvertedRequirement : Requirement | 342 | public class InvertedRequirement : Requirement |
| 330 | { | 343 | { |
| 331 | private readonly Requirement _requirement; | 344 | 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: | |||
| 772 | lasers: | 772 | lasers: |
| 773 | 49: | 773 | 49: |
| 774 | waterwheel: 0 | 774 | waterwheel: 0 |
| 775 | socket: | 775 | full_garden: true |
| 776 | - scene: World_044_CubicSpaceDivision_Optimized | ||
| 777 | index: 0 | ||
| 778 | - scene: World_044_CubicSpaceDivision_Optimized | ||
| 779 | index: 1 | ||
| 780 | - scene: World_044_CubicSpaceDivision_Optimized | ||
| 781 | index: 2 | ||
| 782 | - scene: World_044_CubicSpaceDivision_Optimized | ||
| 783 | index: 3 | ||
| 784 | - scene: World_044_CubicSpaceDivision_Optimized | ||
| 785 | index: 4 | ||
| 786 | - scene: World_044_CubicSpaceDivision_Optimized | ||
| 787 | index: 5 | ||
