{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Eventi del mondo (events.json)", "type": "object", "properties": { "$schema": { "type": "string" }, "version": { "type": "integer", "minimum": 1 }, "maxActive": { "type": "integer", "minimum": 0, "maximum": 64 }, "events": { "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 }, "target": { "type": "string", "enum": [ "industry", "town", "townGood", "area", "depot" ] }, "radiusKm": { "type": "number", "minimum": 0.5, "maximum": 200 }, "chancePerYear": { "type": "number", "minimum": 0, "maximum": 100 }, "durationDays": { "type": "array", "items": { "type": "integer", "minimum": 1, "maximum": 3600 }, "minItems": 2, "maxItems": 2 }, "minYear": { "type": "integer", "minimum": 1800, "maximum": 2200 }, "minPopulation": { "type": "integer", "minimum": 0 }, "goods": { "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9_]*$" }, "minItems": 1 }, "industryKinds": { "type": "array", "items": { "type": "string", "enum": [ "primary", "processing", "manufacturing" ] }, "minItems": 1 }, "severity": { "type": "string", "enum": [ "info", "opportunity", "warning", "critical" ] }, "effects": { "type": "array", "items": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "industryCapacity", "townDemand", "goodDemand", "attendance", "trainSpeed", "trackWear" ] }, "min": { "type": "number", "minimum": 0, "maximum": 10 }, "max": { "type": "number", "minimum": 0, "maximum": 10 } }, "required": [ "kind", "min", "max" ], "additionalProperties": false }, "minItems": 1 }, "news_it": { "type": "string", "minLength": 1 }, "newsEnd_it": { "type": "string", "minLength": 1 } }, "required": [ "id", "name_it", "name_en", "target", "chancePerYear", "durationDays", "minYear", "severity", "effects", "news_it", "newsEnd_it" ], "additionalProperties": false } } }, "required": [ "version", "maxActive", "events" ], "additionalProperties": false }