diff --git a/.vscode/spells-schemas.json b/.vscode/spells-schemas.json index b5fada0..3fa0af5 100644 --- a/.vscode/spells-schemas.json +++ b/.vscode/spells-schemas.json @@ -1,19 +1,19 @@ { - "$comment": "TODO: Subdivide the schema to have a common definition for each data (spells, books, creatures)", + "$comment": "TODO: Subdivide the schema to have a common definition for each data (spellss, books, creatures)", "definitions": {}, "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://example.com/object1678401116.json", "title": "Root", "type": "object", - "required": ["spell"], + "required": ["spells"], "properties": { - "spell": { - "$id": "#root/spell", - "title": "Spell", + "spells": { + "$id": "#root/spells", + "title": "spells", "type": "array", "default": [], "items": { - "$id": "#root/spell/items", + "$id": "#root/spells/items", "title": "Items", "type": "object", "required": [ @@ -32,17 +32,17 @@ ], "properties": { "recid": { - "$id": "#root/spell/items/recid", + "$id": "#root/spells/items/recid", "title": "Recid", "type": "integer", "examples": [0], "default": 0, - "description": "unique id for the spell, for localization purpose", + "description": "unique id for the spells, for localization purpose", "uniqueItems": true, "autoIncrement": true }, "name": { - "$id": "#root/spell/items/name", + "$id": "#root/spells/items/name", "title": "Name", "type": "string", "default": "", @@ -50,7 +50,7 @@ "pattern": "^.*$" }, "source": { - "$id": "#root/spell/items/source", + "$id": "#root/spells/items/source", "title": "Source", "description": "what's the source. Each enum is a book code", "type": "string", @@ -60,7 +60,7 @@ "pattern": "^.*$" }, "page": { - "$id": "#root/spell/items/page", + "$id": "#root/spells/items/page", "description": "in the book, page source", "title": "Page", "type": "integer", @@ -68,7 +68,7 @@ "default": 0 }, "srd": { - "$id": "#root/spell/items/srd", + "$id": "#root/spells/items/srd", "description": "is srd or a creation", "title": "Srd", "type": "boolean", @@ -76,14 +76,14 @@ "default": true }, "level": { - "$id": "#root/spell/items/level", + "$id": "#root/spells/items/level", "title": "Level", "type": "integer", "examples": [2], "default": 0 }, "school": { - "$id": "#root/spell/items/school", + "$id": "#root/spells/items/school", "description": " 'A' : Abjuration,'C' : Conjuration, 'D': Divination, 'E': Enchantment, 'N': Necromancy, 'T' : Transmutation, 'I' : Illusion, 'V' : Evocation", "enum": ["A", "C", "D", "E", "I", "N", "T", "V"], "title": "School", @@ -92,25 +92,25 @@ "pattern": "^.*$" }, "time": { - "$id": "#root/spell/items/time", + "$id": "#root/spells/items/time", "title": "Time", "type": "array", "default": [], "items": { - "$id": "#root/spell/items/time/items", + "$id": "#root/spells/items/time/items", "title": "Items", "type": "object", "required": ["number", "unit"], "properties": { "number": { - "$id": "#root/spell/items/time/items/number", + "$id": "#root/spells/items/time/items/number", "title": "Number", "type": "integer", "examples": [1], "default": 0 }, "unit": { - "$id": "#root/spell/items/time/items/unit", + "$id": "#root/spells/items/time/items/unit", "title": "Unit", "type": "string", "default": "", @@ -124,13 +124,13 @@ } }, "range": { - "$id": "#root/spell/items/range", + "$id": "#root/spells/items/range", "title": "Range", "type": "object", "required": ["type", "distance"], "properties": { "type": { - "$id": "#root/spell/items/range/type", + "$id": "#root/spells/items/range/type", "title": "Type", "type": "string", "default": "point", @@ -140,13 +140,13 @@ "description": "point by default, but can be cone, sphere, cylinder, special " }, "distance": { - "$id": "#root/spell/items/range/distance", + "$id": "#root/spells/items/range/distance", "title": "Distance", "type": "object", "required": ["type", "amount"], "properties": { "type": { - "$id": "#root/spell/items/range/distance/type", + "$id": "#root/spells/items/range/distance/type", "title": "Type", "type": "string", "default": "", @@ -154,7 +154,7 @@ "pattern": "^.*$" }, "amount": { - "$id": "#root/spell/items/range/distance/amount", + "$id": "#root/spells/items/range/distance/amount", "title": "Amount", "type": "integer", "examples": [90], @@ -165,26 +165,26 @@ } }, "components": { - "$id": "#root/spell/items/components", + "$id": "#root/spells/items/components", "title": "Components", "type": "object", "properties": { "v": { - "$id": "#root/spell/items/components/v", + "$id": "#root/spells/items/components/v", "title": "V", "type": "boolean", "examples": [true], "default": true }, "s": { - "$id": "#root/spell/items/components/s", + "$id": "#root/spells/items/components/s", "title": "S", "type": "boolean", "examples": [true], "default": true }, "m": { - "$id": "#root/spell/items/components/m", + "$id": "#root/spells/items/components/m", "title": "M", "type": "string", "default": "", @@ -194,18 +194,18 @@ } }, "duration": { - "$id": "#root/spell/items/duration", + "$id": "#root/spells/items/duration", "title": "Duration", "type": "array", "default": [], "items": { - "$id": "#root/spell/items/duration/items", + "$id": "#root/spells/items/duration/items", "title": "Items", "type": "object", "required": ["type"], "properties": { "type": { - "$id": "#root/spell/items/duration/items/type", + "$id": "#root/spells/items/duration/items/type", "title": "Type", "type": "string", "enum": ["timed", "permanent", "special", "instant"], @@ -217,18 +217,18 @@ } }, "concentration": { - "$id": "#root/spell/items/concentration", + "$id": "#root/spells/items/concentration", "title": "Concentration", "type": "boolean", "default": false }, "desc": { - "$id": "#root/spell/items/desc", + "$id": "#root/spells/items/desc", "title": "Desc", "type": "array", "default": [], "items": { - "$id": "#root/spell/items/desc/items", + "$id": "#root/spells/items/desc/items", "title": "Items", "type": "string", "description": "A description for the entry. Do not copy-paste gameplay infos to prevent copyright", @@ -240,12 +240,12 @@ } }, "damageInflict": { - "$id": "#root/spell/items/damageInflict", + "$id": "#root/spells/items/damageInflict", "title": "Damageinflict", "type": "array", "default": [], "items": { - "$id": "#root/spell/items/damageInflict/items", + "$id": "#root/spells/items/damageInflict/items", "title": "Items", "type": "string", "default": "", @@ -254,13 +254,13 @@ } }, "savingThrow": { - "$id": "#root/spell/items/savingThrow", + "$id": "#root/spells/items/savingThrow", "title": "Savingthrow", "description": "array of saving Throw available", "type": "array", "default": [], "items": { - "$id": "#root/spell/items/savingThrow/items", + "$id": "#root/spells/items/savingThrow/items", "title": "Items", "type": "string", "default": "", @@ -272,12 +272,12 @@ } }, "miscTags": { - "$id": "#root/spell/items/miscTags", + "$id": "#root/spells/items/miscTags", "title": "Misctags", "type": "array", "default": [], "items": { - "$id": "#root/spell/items/miscTags/items", + "$id": "#root/spells/items/miscTags/items", "title": "Items", "type": "string", "default": "", @@ -286,12 +286,12 @@ } }, "areaTags": { - "$id": "#root/spell/items/areaTags", + "$id": "#root/spells/items/areaTags", "title": "Areatags", "type": "array", "default": [], "items": { - "$id": "#root/spell/items/areaTags/items", + "$id": "#root/spells/items/areaTags/items", "title": "Items", "type": "string", "default": "", diff --git a/css/style.css b/css/style.css index 14da043..5fb4dcd 100644 --- a/css/style.css +++ b/css/style.css @@ -162,3 +162,7 @@ } .w2ui-grid .w2ui-grid-body table { } + +body.spells{ + max-width: 100%; +} \ No newline at end of file diff --git a/spells.html b/spells.html index 74f68f6..e1242d5 100644 --- a/spells.html +++ b/spells.html @@ -23,7 +23,7 @@ - +