Skip to content

Commit

Permalink
修复了一波schema
Browse files Browse the repository at this point in the history
  • Loading branch information
boybook committed Feb 3, 2024
1 parent c428af9 commit 7fc13e0
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions ecnpc/hook.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
"const": "touch",
"description": "当玩家接触NPC时触发的行为。\n它可以配置一系列的回调操作(PlayerAction)"
},
"condition": {
"type": "string",
"description": "触发条件判断"
},
"callback": {
"oneOf": [
{
Expand Down Expand Up @@ -63,6 +67,10 @@
},
"description": "玩家点击NPC时,触发exchange"
},
"condition": {
"type": "string",
"description": "触发条件判断"
},
"exchange": {
"oneOf": [
{
Expand All @@ -73,7 +81,9 @@
}
]
}
}
},
"required": ["type"],
"additionalProperties": false
},
{
"type": "object",
Expand Down Expand Up @@ -235,7 +245,8 @@
]
}
},
"required": ["type", "particle"]
"required": ["type", "particle"],
"additionalProperties": false
},
{
"type": "object",
Expand Down

0 comments on commit 7fc13e0

Please sign in to comment.