update spells body style
This commit is contained in:
parent
e14e1c8b83
commit
b314104ab6
3 changed files with 46 additions and 42 deletions
82
.vscode/spells-schemas.json
vendored
82
.vscode/spells-schemas.json
vendored
|
@ -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": {},
|
"definitions": {},
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"$id": "https://example.com/object1678401116.json",
|
"$id": "https://example.com/object1678401116.json",
|
||||||
"title": "Root",
|
"title": "Root",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["spell"],
|
"required": ["spells"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"spell": {
|
"spells": {
|
||||||
"$id": "#root/spell",
|
"$id": "#root/spells",
|
||||||
"title": "Spell",
|
"title": "spells",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"default": [],
|
"default": [],
|
||||||
"items": {
|
"items": {
|
||||||
"$id": "#root/spell/items",
|
"$id": "#root/spells/items",
|
||||||
"title": "Items",
|
"title": "Items",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
|
@ -32,17 +32,17 @@
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"recid": {
|
"recid": {
|
||||||
"$id": "#root/spell/items/recid",
|
"$id": "#root/spells/items/recid",
|
||||||
"title": "Recid",
|
"title": "Recid",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"examples": [0],
|
"examples": [0],
|
||||||
"default": 0,
|
"default": 0,
|
||||||
"description": "unique id for the spell, for localization purpose",
|
"description": "unique id for the spells, for localization purpose",
|
||||||
"uniqueItems": true,
|
"uniqueItems": true,
|
||||||
"autoIncrement": true
|
"autoIncrement": true
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"$id": "#root/spell/items/name",
|
"$id": "#root/spells/items/name",
|
||||||
"title": "Name",
|
"title": "Name",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "",
|
"default": "",
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
"pattern": "^.*$"
|
"pattern": "^.*$"
|
||||||
},
|
},
|
||||||
"source": {
|
"source": {
|
||||||
"$id": "#root/spell/items/source",
|
"$id": "#root/spells/items/source",
|
||||||
"title": "Source",
|
"title": "Source",
|
||||||
"description": "what's the source. Each enum is a book code",
|
"description": "what's the source. Each enum is a book code",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
"pattern": "^.*$"
|
"pattern": "^.*$"
|
||||||
},
|
},
|
||||||
"page": {
|
"page": {
|
||||||
"$id": "#root/spell/items/page",
|
"$id": "#root/spells/items/page",
|
||||||
"description": "in the book, page source",
|
"description": "in the book, page source",
|
||||||
"title": "Page",
|
"title": "Page",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
"default": 0
|
"default": 0
|
||||||
},
|
},
|
||||||
"srd": {
|
"srd": {
|
||||||
"$id": "#root/spell/items/srd",
|
"$id": "#root/spells/items/srd",
|
||||||
"description": "is srd or a creation",
|
"description": "is srd or a creation",
|
||||||
"title": "Srd",
|
"title": "Srd",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
|
@ -76,14 +76,14 @@
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
"level": {
|
"level": {
|
||||||
"$id": "#root/spell/items/level",
|
"$id": "#root/spells/items/level",
|
||||||
"title": "Level",
|
"title": "Level",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"examples": [2],
|
"examples": [2],
|
||||||
"default": 0
|
"default": 0
|
||||||
},
|
},
|
||||||
"school": {
|
"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",
|
"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"],
|
"enum": ["A", "C", "D", "E", "I", "N", "T", "V"],
|
||||||
"title": "School",
|
"title": "School",
|
||||||
|
@ -92,25 +92,25 @@
|
||||||
"pattern": "^.*$"
|
"pattern": "^.*$"
|
||||||
},
|
},
|
||||||
"time": {
|
"time": {
|
||||||
"$id": "#root/spell/items/time",
|
"$id": "#root/spells/items/time",
|
||||||
"title": "Time",
|
"title": "Time",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"default": [],
|
"default": [],
|
||||||
"items": {
|
"items": {
|
||||||
"$id": "#root/spell/items/time/items",
|
"$id": "#root/spells/items/time/items",
|
||||||
"title": "Items",
|
"title": "Items",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["number", "unit"],
|
"required": ["number", "unit"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"number": {
|
"number": {
|
||||||
"$id": "#root/spell/items/time/items/number",
|
"$id": "#root/spells/items/time/items/number",
|
||||||
"title": "Number",
|
"title": "Number",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"examples": [1],
|
"examples": [1],
|
||||||
"default": 0
|
"default": 0
|
||||||
},
|
},
|
||||||
"unit": {
|
"unit": {
|
||||||
"$id": "#root/spell/items/time/items/unit",
|
"$id": "#root/spells/items/time/items/unit",
|
||||||
"title": "Unit",
|
"title": "Unit",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "",
|
"default": "",
|
||||||
|
@ -124,13 +124,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"range": {
|
"range": {
|
||||||
"$id": "#root/spell/items/range",
|
"$id": "#root/spells/items/range",
|
||||||
"title": "Range",
|
"title": "Range",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["type", "distance"],
|
"required": ["type", "distance"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {
|
"type": {
|
||||||
"$id": "#root/spell/items/range/type",
|
"$id": "#root/spells/items/range/type",
|
||||||
"title": "Type",
|
"title": "Type",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "point",
|
"default": "point",
|
||||||
|
@ -140,13 +140,13 @@
|
||||||
"description": "point by default, but can be cone, sphere, cylinder, special "
|
"description": "point by default, but can be cone, sphere, cylinder, special "
|
||||||
},
|
},
|
||||||
"distance": {
|
"distance": {
|
||||||
"$id": "#root/spell/items/range/distance",
|
"$id": "#root/spells/items/range/distance",
|
||||||
"title": "Distance",
|
"title": "Distance",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["type", "amount"],
|
"required": ["type", "amount"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {
|
"type": {
|
||||||
"$id": "#root/spell/items/range/distance/type",
|
"$id": "#root/spells/items/range/distance/type",
|
||||||
"title": "Type",
|
"title": "Type",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "",
|
"default": "",
|
||||||
|
@ -154,7 +154,7 @@
|
||||||
"pattern": "^.*$"
|
"pattern": "^.*$"
|
||||||
},
|
},
|
||||||
"amount": {
|
"amount": {
|
||||||
"$id": "#root/spell/items/range/distance/amount",
|
"$id": "#root/spells/items/range/distance/amount",
|
||||||
"title": "Amount",
|
"title": "Amount",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"examples": [90],
|
"examples": [90],
|
||||||
|
@ -165,26 +165,26 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"components": {
|
"components": {
|
||||||
"$id": "#root/spell/items/components",
|
"$id": "#root/spells/items/components",
|
||||||
"title": "Components",
|
"title": "Components",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"v": {
|
"v": {
|
||||||
"$id": "#root/spell/items/components/v",
|
"$id": "#root/spells/items/components/v",
|
||||||
"title": "V",
|
"title": "V",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"examples": [true],
|
"examples": [true],
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
"s": {
|
"s": {
|
||||||
"$id": "#root/spell/items/components/s",
|
"$id": "#root/spells/items/components/s",
|
||||||
"title": "S",
|
"title": "S",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"examples": [true],
|
"examples": [true],
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
"m": {
|
"m": {
|
||||||
"$id": "#root/spell/items/components/m",
|
"$id": "#root/spells/items/components/m",
|
||||||
"title": "M",
|
"title": "M",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "",
|
"default": "",
|
||||||
|
@ -194,18 +194,18 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"duration": {
|
"duration": {
|
||||||
"$id": "#root/spell/items/duration",
|
"$id": "#root/spells/items/duration",
|
||||||
"title": "Duration",
|
"title": "Duration",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"default": [],
|
"default": [],
|
||||||
"items": {
|
"items": {
|
||||||
"$id": "#root/spell/items/duration/items",
|
"$id": "#root/spells/items/duration/items",
|
||||||
"title": "Items",
|
"title": "Items",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["type"],
|
"required": ["type"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": {
|
"type": {
|
||||||
"$id": "#root/spell/items/duration/items/type",
|
"$id": "#root/spells/items/duration/items/type",
|
||||||
"title": "Type",
|
"title": "Type",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["timed", "permanent", "special", "instant"],
|
"enum": ["timed", "permanent", "special", "instant"],
|
||||||
|
@ -217,18 +217,18 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"concentration": {
|
"concentration": {
|
||||||
"$id": "#root/spell/items/concentration",
|
"$id": "#root/spells/items/concentration",
|
||||||
"title": "Concentration",
|
"title": "Concentration",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
"desc": {
|
"desc": {
|
||||||
"$id": "#root/spell/items/desc",
|
"$id": "#root/spells/items/desc",
|
||||||
"title": "Desc",
|
"title": "Desc",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"default": [],
|
"default": [],
|
||||||
"items": {
|
"items": {
|
||||||
"$id": "#root/spell/items/desc/items",
|
"$id": "#root/spells/items/desc/items",
|
||||||
"title": "Items",
|
"title": "Items",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "A description for the entry. Do not copy-paste gameplay infos to prevent copyright",
|
"description": "A description for the entry. Do not copy-paste gameplay infos to prevent copyright",
|
||||||
|
@ -240,12 +240,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"damageInflict": {
|
"damageInflict": {
|
||||||
"$id": "#root/spell/items/damageInflict",
|
"$id": "#root/spells/items/damageInflict",
|
||||||
"title": "Damageinflict",
|
"title": "Damageinflict",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"default": [],
|
"default": [],
|
||||||
"items": {
|
"items": {
|
||||||
"$id": "#root/spell/items/damageInflict/items",
|
"$id": "#root/spells/items/damageInflict/items",
|
||||||
"title": "Items",
|
"title": "Items",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "",
|
"default": "",
|
||||||
|
@ -254,13 +254,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"savingThrow": {
|
"savingThrow": {
|
||||||
"$id": "#root/spell/items/savingThrow",
|
"$id": "#root/spells/items/savingThrow",
|
||||||
"title": "Savingthrow",
|
"title": "Savingthrow",
|
||||||
"description": "array of saving Throw available",
|
"description": "array of saving Throw available",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"default": [],
|
"default": [],
|
||||||
"items": {
|
"items": {
|
||||||
"$id": "#root/spell/items/savingThrow/items",
|
"$id": "#root/spells/items/savingThrow/items",
|
||||||
"title": "Items",
|
"title": "Items",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "",
|
"default": "",
|
||||||
|
@ -272,12 +272,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"miscTags": {
|
"miscTags": {
|
||||||
"$id": "#root/spell/items/miscTags",
|
"$id": "#root/spells/items/miscTags",
|
||||||
"title": "Misctags",
|
"title": "Misctags",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"default": [],
|
"default": [],
|
||||||
"items": {
|
"items": {
|
||||||
"$id": "#root/spell/items/miscTags/items",
|
"$id": "#root/spells/items/miscTags/items",
|
||||||
"title": "Items",
|
"title": "Items",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "",
|
"default": "",
|
||||||
|
@ -286,12 +286,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"areaTags": {
|
"areaTags": {
|
||||||
"$id": "#root/spell/items/areaTags",
|
"$id": "#root/spells/items/areaTags",
|
||||||
"title": "Areatags",
|
"title": "Areatags",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"default": [],
|
"default": [],
|
||||||
"items": {
|
"items": {
|
||||||
"$id": "#root/spell/items/areaTags/items",
|
"$id": "#root/spells/items/areaTags/items",
|
||||||
"title": "Items",
|
"title": "Items",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "",
|
"default": "",
|
||||||
|
|
|
@ -162,3 +162,7 @@
|
||||||
}
|
}
|
||||||
.w2ui-grid .w2ui-grid-body table {
|
.w2ui-grid .w2ui-grid-body table {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.spells{
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body class="spells">
|
||||||
<header>
|
<header>
|
||||||
<button onclick="changeLangEN()">English</button>
|
<button onclick="changeLangEN()">English</button>
|
||||||
<button onclick="changeLangFR()">Français</button>
|
<button onclick="changeLangFR()">Français</button>
|
||||||
|
|
Loading…
Reference in a new issue