Add item_descriptor and use it in acceptable places (#115)

* Add item_descriptor and use it in acceptable places

* Rename descriptor

* Fix refs

* Fix refs

* Add descriptor to 3 more components
This commit is contained in:
Piotr Brzozowski
2022-10-01 19:34:08 +02:00
committed by GitHub
parent 393e7191dd
commit dcd9877aa7
15 changed files with 74 additions and 30 deletions

View File

@@ -33,21 +33,22 @@
{
"type": "array",
"items": {
"$ref": "../../../../general/item/identifier.json"
}
},
{
"type": "array",
"items": {
"type": "object",
"properties": {
"growth": {
"type": "number"
},
"item": {
"oneOf": [
{
"$ref": "../../../../general/item/identifier.json"
},
{
"type": "object",
"properties": {
"growth": {
"type": "number"
},
"item": {
"$ref": "../../../../general/item/identifier.json"
}
}
}
}
]
}
},
{

View File

@@ -17,7 +17,7 @@
"description": "The list of items that can be used to bribe the entity.",
"items": {
"description": "An item that can be used to bribe the entity.",
"$ref": "../../../../general/item/identifier.json",
"$ref": "../../../../general/item/descriptor.json",
"title": "Bribe Items"
},
"title": "Bribe Items"

View File

@@ -27,7 +27,7 @@
"items": {
"type": "string",
"description": "A item name.",
"$ref": "../../../../general/item/identifier.json",
"$ref": "../../../../general/item/descriptor.json",
"title": "Accepted Items"
}
},

View File

@@ -23,7 +23,7 @@
"description": "The list of items that can be given to the entity to place in their inventory.",
"items": {
"description": "An items that can be given to the entity to place in their inventory.",
"$ref": "../../../../general/item/identifier.json",
"$ref": "../../../../general/item/descriptor.json",
"title": "Properties"
}
},