Make schema layout more explicit
authorLiza Carvelli <liza@carvel.li>
Wed, 29 Jan 2025 20:14:40 +0000 (21:14 +0100)
committerLiza Carvelli <liza@carvel.li>
Wed, 29 Jan 2025 20:14:40 +0000 (21:14 +0100)
LLib
QuestPaths/quest-v1.json

diff --git a/LLib b/LLib
index b1059871154b84401020c0072fd089fcc022fb77..746d14681baa91132784ab17f8f49671e86ea211 160000 (submodule)
--- a/LLib
+++ b/LLib
@@ -1 +1 @@
-Subproject commit b1059871154b84401020c0072fd089fcc022fb77
+Subproject commit 746d14681baa91132784ab17f8f49671e86ea211
index 0ca8c368d7c8b8df9f5912317ebda1cfcbd6c5d0..83f05261ead8847c8b168f624e37e14caf80c5ef 100644 (file)
                   ]
                 },
                 "Diving": {
-                  "type": ["boolean", "null"]
+                  "type": [
+                    "boolean",
+                    "null"
+                  ]
                 },
                 "NotTargetable": {
                   "type": "boolean"
         },
         {
           "if": {
-            "anyOf": [
-              {
-                "properties": {
-                  "InteractionType": {
-                    "const": "UseItem"
-                  }
-                }
-              },
-              {
-                "properties": {
-                  "InteractionType": {
-                    "const": "Combat"
-                  },
-                  "EnemySpawnType": {
-                    "const": "AfterItemUse"
-                  }
-                }
+            "properties": {
+              "InteractionType": {
+                "const": "UseItem"
+              }
+            }
+          },
+          "then": {
+            "properties": {
+              "GroundTarget": {
+                "type": [
+                  "boolean",
+                  "null"
+                ],
+                "default": false
               }
+            },
+            "required": [
+              "ItemId"
             ]
+          }
+        },
+        {
+          "if": {
+            "properties": {
+              "InteractionType": {
+                "const": "Combat"
+              },
+              "EnemySpawnType": {
+                "const": "AfterItemUse"
+              }
+            }
           },
           "then": {
             "properties": {