Fixing loot tables

This commit is contained in:
DaanV2
2021-01-27 01:57:16 +01:00
parent 42a97956bb
commit d0c41a949e
3 changed files with 41 additions and 8 deletions

View File

@@ -17,6 +17,11 @@
"description": "The default random chance if the level difficulty is not assigned.",
"title": "Default chance"
},
"max_chance": {
"title": "Max chance",
"type": "number",
"description": "UNDOCUMENATED"
},
"easy": {
"type": "number",
"default": 0,

View File

@@ -13,18 +13,19 @@
},
"damage": {
"oneOf": [
{ "type": "integer" },
{
"type": "integer"
"type": "object",
"properties": {
"min": { "type": "integer" },
"max": { "type": "integer" }
}
},
{
"type": "object",
"properties": {
"min": {
"type": "integer"
},
"max": {
"type": "integer"
}
"min": { "type": "number" },
"max": { "type": "number" }
}
}
],

View File

@@ -31,7 +31,6 @@
"additionalProperties": false,
"title": "A single pool",
"type": "object",
"required": ["rolls"],
"properties": {
"rolls": {
"title": "Rolls",
@@ -86,6 +85,11 @@
"type": "string",
"enum": ["item", "empty", "loot_table"]
},
"count": {
"type": "integer",
"title": "Count",
"description": "The amount of the item"
},
"name": {
"title": "Name",
"type": "string",
@@ -117,6 +121,29 @@
}
}
}
},
"tiers": {
"title": "Tiers",
"description": "TODO description",
"type": "object",
"additionalProperties": false,
"properties": {
"bonus_chance": {
"title": "Bonus chance",
"description": "TODO description",
"type": "number"
},
"bonus_rolls": {
"title": "Bonus rolls",
"description": "TODO description",
"type": "integer"
},
"initial_range": {
"title": "Initial range",
"description": "TODO description",
"type": "integer"
}
}
}
}
}