|
@@ -59,161 +59,7 @@
|
|
|
},
|
|
},
|
|
|
"type": "array"
|
|
"type": "array"
|
|
|
},
|
|
},
|
|
|
- "inventory": {
|
|
|
|
|
- "properties": {
|
|
|
|
|
- "items": {
|
|
|
|
|
- "items": {
|
|
|
|
|
- "properties": {
|
|
|
|
|
- "name": {"type": "string"},
|
|
|
|
|
- "count": {"type": "integer", "minimum": 1},
|
|
|
|
|
- "countEquipped": {"type": "integer", "minimum": 0},
|
|
|
|
|
- "value": {"$ref": "#/definitions/money"},
|
|
|
|
|
- "page": {"type": "string"},
|
|
|
|
|
- "slot": {
|
|
|
|
|
- "type": "string",
|
|
|
|
|
- "enum": [
|
|
|
|
|
- "HEAD",
|
|
|
|
|
- "FACE",
|
|
|
|
|
- "NECK",
|
|
|
|
|
- "TORSO",
|
|
|
|
|
- "BODY",
|
|
|
|
|
- "WAIST",
|
|
|
|
|
- "SHOULDER",
|
|
|
|
|
- "ARM",
|
|
|
|
|
- "HAND",
|
|
|
|
|
- "RING",
|
|
|
|
|
- "FEET",
|
|
|
|
|
- "MAIN_HAND",
|
|
|
|
|
- "OFF_HAND",
|
|
|
|
|
- "ONE_HAND",
|
|
|
|
|
- "TWO_HANDS"
|
|
|
|
|
- ]
|
|
|
|
|
- },
|
|
|
|
|
- "weight": {"type": "number"},
|
|
|
|
|
- "weapon": {
|
|
|
|
|
- "dependencies":{
|
|
|
|
|
-
|
|
|
|
|
- },
|
|
|
|
|
- "properties": {
|
|
|
|
|
- "attackBonus": {"type": "integer"},
|
|
|
|
|
- "damageBonus": {"type": "integer"},
|
|
|
|
|
- "damage": {"type": "string"},
|
|
|
|
|
- "secondaryDamage": {"type": "string"},
|
|
|
|
|
- "criticalThreat": {"type": "integer", "maximum": 20},
|
|
|
|
|
- "criticalDamage": {"type": "integer", "minimum": 2},
|
|
|
|
|
- "secondaryCriticalDamage": {"type": "integer", "minimum": 2},
|
|
|
|
|
- "range": {
|
|
|
|
|
- "type": "string"
|
|
|
|
|
- },
|
|
|
|
|
- "type": {
|
|
|
|
|
- "type": "string",
|
|
|
|
|
- "enum": [
|
|
|
|
|
- "Slashing",
|
|
|
|
|
- "Piercing",
|
|
|
|
|
- "Bludgeoning"
|
|
|
|
|
- ]
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- "required": [
|
|
|
|
|
- "damage",
|
|
|
|
|
- "type",
|
|
|
|
|
- "range",
|
|
|
|
|
- "criticalThreat",
|
|
|
|
|
- "criticalDamage"
|
|
|
|
|
- ],
|
|
|
|
|
- "type": "object"
|
|
|
|
|
- },
|
|
|
|
|
- "armor": {
|
|
|
|
|
- "properties": {
|
|
|
|
|
- "bonus": {"type": "integer", "minimum": 0},
|
|
|
|
|
- "type": {
|
|
|
|
|
- "type": "string",
|
|
|
|
|
- "enum": ["Light", "Medium", "Heavy"]
|
|
|
|
|
- },
|
|
|
|
|
- "maxDex": {"type": "integer", "minimum": 0},
|
|
|
|
|
- "checkPenalty": {"type": "integer", "maximum": 0},
|
|
|
|
|
- "spellFailure": {"type": "integer", "minimum": 0, "maximum": 100},
|
|
|
|
|
- "speed": {"type": "integer"}
|
|
|
|
|
- },
|
|
|
|
|
- "type": "object"
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- "oneOf": [
|
|
|
|
|
- {
|
|
|
|
|
- "properties": {
|
|
|
|
|
- "slot": {"enum": ["BODY", "OFF_HAND"]}
|
|
|
|
|
- },
|
|
|
|
|
- "required": [
|
|
|
|
|
- "armor"
|
|
|
|
|
- ]
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- "properties": {
|
|
|
|
|
- "slot": {
|
|
|
|
|
- "enum": [
|
|
|
|
|
- "MAIN_HAND",
|
|
|
|
|
- "OFF_HAND",
|
|
|
|
|
- "ONE_HAND",
|
|
|
|
|
- "TWO_HANDS"
|
|
|
|
|
- ]
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- "required": [
|
|
|
|
|
- "weapon"
|
|
|
|
|
- ]
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- "not": {
|
|
|
|
|
- "properties": {
|
|
|
|
|
- "weapon": {},
|
|
|
|
|
- "armor": {}
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- ],
|
|
|
|
|
- "required": [
|
|
|
|
|
- "name",
|
|
|
|
|
- "count",
|
|
|
|
|
- "value",
|
|
|
|
|
- "weight"
|
|
|
|
|
- ],
|
|
|
|
|
- "type": "object"
|
|
|
|
|
- },
|
|
|
|
|
- "type": "array"
|
|
|
|
|
- },
|
|
|
|
|
- "equipment": {
|
|
|
|
|
- "properties": {
|
|
|
|
|
- "HEAD": {"type": "string"},
|
|
|
|
|
- "FACE": {"type": "string"},
|
|
|
|
|
- "NECK": {"type": "string"},
|
|
|
|
|
- "TORSO": {"type": "string"},
|
|
|
|
|
- "BODY": {"type": "string"},
|
|
|
|
|
- "WAIST": {"type": "string"},
|
|
|
|
|
- "SHOULDER": {"type": "string"},
|
|
|
|
|
- "ARM": {"type": "string"},
|
|
|
|
|
- "HAND": {"type": "string"},
|
|
|
|
|
- "RING1": {"type": "string"},
|
|
|
|
|
- "RING2": {"type": "string"},
|
|
|
|
|
- "FEET": {"type": "string"},
|
|
|
|
|
- "MAIN_HAND": {"type": "string"},
|
|
|
|
|
- "OFF_HAND": {"type": "string"}
|
|
|
|
|
- },
|
|
|
|
|
- "type": "object"
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- "type": "object"
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- "definitions": {
|
|
|
|
|
- "money": {
|
|
|
|
|
- "properties": {
|
|
|
|
|
- "pp": {"type": "integer", "minimum": 0},
|
|
|
|
|
- "gp": {"type": "integer", "minimum": 0},
|
|
|
|
|
- "sp": {"type": "integer", "minimum": 0},
|
|
|
|
|
- "cp": {"type": "integer", "minimum": 0}
|
|
|
|
|
- },
|
|
|
|
|
- "type": "object"
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ "inventory": {"$ref": "file:inventory.json#"}
|
|
|
},
|
|
},
|
|
|
"type": "object"
|
|
"type": "object"
|
|
|
}
|
|
}
|