Added documentation to loot tables

This commit is contained in:
Daan Verstraten
2022-03-12 10:21:12 +01:00
parent f5e83f3937
commit 4e486729d0

View File

@@ -25,7 +25,7 @@
"definitions": { "definitions": {
"pools_spec": { "pools_spec": {
"title": "Pools", "title": "Pools",
"description": "UNDOCUMENTED", "description": "A collection of items where the system will choice one or more from",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"type": "array", "type": "array",
"additionalProperties": false, "additionalProperties": false,
@@ -36,7 +36,7 @@
"properties": { "properties": {
"rolls": { "rolls": {
"title": "Rolls", "title": "Rolls",
"description": "UNDOCUMENTED", "description": "Determines how many items, will be selected",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"oneOf": [ "oneOf": [
{ "type": "integer", "minimum": 0 }, { "type": "integer", "minimum": 0 },
@@ -44,8 +44,8 @@
"type": "object", "type": "object",
"required": ["min", "max"], "required": ["min", "max"],
"properties": { "properties": {
"min": { "title": "Minimum", "type": "number", "minimum": 0 }, "min": { "title": "Minimum", "type": "number", "minimum": 0, "description": "The minimum amount" },
"max": { "title": "Minimum", "type": "number", "minimum": 1 } "max": { "title": "Maximum", "type": "number", "minimum": 1, "description": "The maximum amount" }
} }
} }
] ]
@@ -53,13 +53,13 @@
"type": { "type": {
"title": "Type", "title": "Type",
"type": "string", "type": "string",
"description": "UNDOCUMENTED", "description": "Whenever this pool item is an item or another table",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"enum": ["loot_table", "item", "empty"] "enum": ["loot_table", "item", "empty"]
}, },
"conditions": { "conditions": {
"title": "Conditions", "title": "Conditions",
"description": "UNDOCUMENTED", "description": "Possible conditions that need to have been met before selecting this item",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"type": "array", "type": "array",
"items": { "$ref": "./conditions.json" } "items": { "$ref": "./conditions.json" }
@@ -67,7 +67,7 @@
"entries": { "entries": {
"title": "Entries", "title": "Entries",
"type": "array", "type": "array",
"description": "UNDOCUMENTED", "description": "The items specifiation of this pool",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"items": { "items": {
"additionalProperties": false, "additionalProperties": false,