From 2a0d4fb19a66b54db26f46ac33caf24ae8d17d75 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 22 Feb 2025 13:56:20 -0500 Subject: Fix entry requirements --- GameData.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'GameData.cs') diff --git a/GameData.cs b/GameData.cs index f131e85..9ec511e 100644 --- a/GameData.cs +++ b/GameData.cs @@ -53,6 +53,21 @@ namespace ManifoldGardenArchipelago { List reqs = []; + if (yamlReq.ContainsKey("entry")) + { + if (yamlReq["entry"] is string sceneName) + { + reqs.Add(new EntryRequirement(sceneName)); + } + else if (yamlReq["entry"] is List scenes) + { + foreach (var sceneName2 in scenes) + { + reqs.Add(new EntryRequirement(sceneName2)); + } + } + } + if (yamlReq.ContainsKey("item")) { if (yamlReq["item"] is string itemName) -- cgit 1.4.1