diff options
| -rw-r--r-- | GameData.cs | 15 |
1 files changed, 15 insertions, 0 deletions
| diff --git a/GameData.cs b/GameData.cs index f131e85..9ec511e 100644 --- a/GameData.cs +++ b/GameData.cs | |||
| @@ -53,6 +53,21 @@ namespace ManifoldGardenArchipelago | |||
| 53 | { | 53 | { |
| 54 | List<Requirement> reqs = []; | 54 | List<Requirement> reqs = []; |
| 55 | 55 | ||
| 56 | if (yamlReq.ContainsKey("entry")) | ||
| 57 | { | ||
| 58 | if (yamlReq["entry"] is string sceneName) | ||
| 59 | { | ||
| 60 | reqs.Add(new EntryRequirement(sceneName)); | ||
| 61 | } | ||
| 62 | else if (yamlReq["entry"] is List<string> scenes) | ||
| 63 | { | ||
| 64 | foreach (var sceneName2 in scenes) | ||
| 65 | { | ||
| 66 | reqs.Add(new EntryRequirement(sceneName2)); | ||
| 67 | } | ||
| 68 | } | ||
| 69 | } | ||
| 70 | |||
| 56 | if (yamlReq.ContainsKey("item")) | 71 | if (yamlReq.ContainsKey("item")) |
| 57 | { | 72 | { |
| 58 | if (yamlReq["item"] is string itemName) | 73 | if (yamlReq["item"] is string itemName) |
