{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Industrie (industries.json)", "type": "object", "properties": { "$schema": { "type": "string" }, "version": { "type": "integer", "minimum": 1 }, "industries": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" }, "name_it": { "type": "string", "minLength": 1 }, "name_en": { "type": "string", "minLength": 1 }, "kind": { "type": "string", "enum": [ "primary", "processing", "manufacturing" ] }, "recipe": { "type": "object", "properties": { "inputs": { "type": "array", "items": { "type": "object", "properties": { "good": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" }, "perCycle": { "type": "integer", "minimum": 1, "maximum": 100 } }, "required": [ "good", "perCycle" ], "additionalProperties": false }, "minItems": 0, "maxItems": 4 }, "outputs": { "type": "array", "items": { "type": "object", "properties": { "good": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" }, "perCycle": { "type": "integer", "minimum": 1, "maximum": 100 } }, "required": [ "good", "perCycle" ], "additionalProperties": false }, "minItems": 1, "maxItems": 3 } }, "required": [ "inputs", "outputs" ], "additionalProperties": false }, "cycleDays": { "type": "integer", "minimum": 1, "maximum": 30 }, "capacityPerLevel": { "type": "array", "items": { "type": "integer", "minimum": 0 }, "minItems": 5, "maxItems": 5 }, "workersPerLevel": { "type": "array", "items": { "type": "integer", "minimum": 0 }, "minItems": 5, "maxItems": 5 }, "staffPerLevel": { "type": "array", "items": { "type": "integer", "minimum": 0 }, "minItems": 5, "maxItems": 5 }, "storageDays": { "type": "integer", "minimum": 1, "maximum": 365 }, "wearIntensity": { "type": "number", "minimum": 0, "maximum": 5 }, "footprint": { "type": "string", "enum": [ "small", "medium", "large" ] }, "placement": { "type": "object", "properties": { "needs": { "type": "string", "enum": [ "deposit", "forest", "plain", "coast", "town", "any" ] }, "resource": { "type": "string", "enum": [ "coal", "iron", "stone", "oil" ] }, "minTownDistanceKm": { "type": "number", "minimum": 0, "maximum": 50 }, "maxTownDistanceKm": { "type": "number", "minimum": 0, "maximum": 100 }, "maxInputDistanceKm": { "type": "number", "minimum": 0, "maximum": 100 }, "minTownPopulation": { "type": "integer", "minimum": 0 } }, "required": [ "needs" ], "additionalProperties": false }, "depletable": { "type": "boolean" }, "era": { "type": "integer", "minimum": 1800, "maximum": 2300 }, "upgradeCost": { "type": "integer", "minimum": 0 }, "spawnWeight": { "type": "number", "minimum": 0, "maximum": 10 } }, "required": [ "id", "name_it", "name_en", "kind", "recipe", "cycleDays", "capacityPerLevel", "workersPerLevel", "staffPerLevel", "storageDays", "wearIntensity", "footprint", "placement", "depletable", "era", "upgradeCost", "spawnWeight" ], "additionalProperties": false }, "minItems": 14 } }, "required": [ "version", "industries" ], "additionalProperties": false }