{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Regioni e nomi (regions.json)", "type": "object", "properties": { "$schema": { "type": "string" }, "version": { "type": "integer", "minimum": 1 }, "concessions": { "type": "object", "properties": { "unlockTier": { "type": "integer", "minimum": 1, "maximum": 5 }, "basePrice": { "type": "integer", "minimum": 0 }, "priceGrowth": { "type": "number", "minimum": 1 }, "maxRegions": { "type": "integer", "minimum": 1, "maximum": 64 } }, "required": [ "unlockTier", "basePrice", "priceGrowth", "maxRegions" ], "additionalProperties": false }, "regions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" }, "name_it": { "type": "string", "minLength": 1 }, "climate": { "type": "string", "enum": [ "temperate", "alpine", "coastal", "dry" ] }, "terrainDifficulty": { "type": "number", "minimum": 0.1, "maximum": 5 }, "resources": { "type": "object", "properties": { "coal": { "type": "number", "minimum": 0 }, "iron": { "type": "number", "minimum": 0 }, "stone": { "type": "number", "minimum": 0 }, "oil": { "type": "number", "minimum": 0 } }, "required": [ "coal", "iron", "stone", "oil" ], "additionalProperties": false }, "hubs": { "type": "array", "items": { "type": "string", "enum": [ "port", "border" ] }, "minItems": 0 }, "namePool": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" } }, "required": [ "id", "name_it", "climate", "terrainDifficulty", "resources", "hubs", "namePool" ], "additionalProperties": false }, "minItems": 1 }, "namePools": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" }, "prefixes": { "type": "array", "items": { "type": "string" }, "minItems": 1 }, "roots": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 4 }, "suffixes": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 2 }, "saints": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1 } }, "required": [ "id", "prefixes", "roots", "suffixes", "saints" ], "additionalProperties": false }, "minItems": 1 }, "industryNameTemplates": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1 }, "featureNames": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1 } }, "required": [ "version", "concessions", "regions", "namePools", "industryNameTemplates", "featureNames" ], "additionalProperties": false }