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:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
"items": {
|
||||
"type": "string",
|
||||
"description": "A item name.",
|
||||
"$ref": "../../../../general/item/identifier.json",
|
||||
"$ref": "../../../../general/item/descriptor.json",
|
||||
"title": "Accepted Items"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user