- Base deterministica: Money, id tipizzati, DMath, XxHash64, calendario - 12 file dati con schemi, validatore di schema interno, validazione semantica e hash dei dati; viaferrea-tools validate-data - Generatore di mappa (rilievo, mare, priority-flood, fiumi, laghi, copertura, giacimenti, città, hub, industrie) e viaferrea-tools genmap - Economia: città, industrie, hub, mercato con componente mondiale, prezzi locali, tariffe, lavoro in sede e a piedi, trasporto locale, registro a partita doppia, prestiti, rating, difficoltà - Salvataggi Brotli con rimappatura per id e hash di stato giornaliero - viaferrea-tools simulate con KPI CSV; 45 test verdi; ADR 0002-0006 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0191R7vXgtbAvSV4V8tj8uzL
183 lines
4.1 KiB
JSON
183 lines
4.1 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"title": "Difficoltà (difficulty.json)",
|
|
"type": "object",
|
|
"properties": {
|
|
"$schema": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"default": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9_]*$"
|
|
},
|
|
"depletionMultipliers": {
|
|
"type": "object",
|
|
"properties": {
|
|
"slow": {
|
|
"type": "number",
|
|
"minimum": 0
|
|
},
|
|
"normal": {
|
|
"type": "number",
|
|
"minimum": 0
|
|
},
|
|
"fast": {
|
|
"type": "number",
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"slow",
|
|
"normal",
|
|
"fast"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"presets": {
|
|
"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
|
|
},
|
|
"initialCapital": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"initialCredit": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"baseInterestRate": {
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"maximum": 1
|
|
},
|
|
"constructionCostMultiplier": {
|
|
"type": "number",
|
|
"minimum": 0.1,
|
|
"maximum": 10
|
|
},
|
|
"tariffMultiplier": {
|
|
"type": "number",
|
|
"minimum": 0.1,
|
|
"maximum": 10
|
|
},
|
|
"wearMultiplier": {
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"maximum": 10
|
|
},
|
|
"marketVolatilityMultiplier": {
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"maximum": 10
|
|
},
|
|
"aiCompetitors": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 16
|
|
},
|
|
"aiCapitalMultiplier": {
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"maximum": 10
|
|
},
|
|
"aiCostDiscount": {
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"maximum": 0.9
|
|
},
|
|
"playerTakeover": {
|
|
"type": "string",
|
|
"enum": [
|
|
"disabled",
|
|
"ransom",
|
|
"immediate"
|
|
]
|
|
},
|
|
"takeoverRansomYears": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 50
|
|
},
|
|
"bankruptcyDays": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 3650
|
|
},
|
|
"publicFromStart": {
|
|
"type": "boolean"
|
|
},
|
|
"playerShareAtStart": {
|
|
"type": "number",
|
|
"minimum": 0.5,
|
|
"maximum": 1
|
|
},
|
|
"ironman": {
|
|
"type": "string",
|
|
"enum": [
|
|
"no",
|
|
"optional",
|
|
"yes"
|
|
]
|
|
},
|
|
"depletion": {
|
|
"type": "string",
|
|
"enum": [
|
|
"slow",
|
|
"normal",
|
|
"fast"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"name_it",
|
|
"name_en",
|
|
"initialCapital",
|
|
"initialCredit",
|
|
"baseInterestRate",
|
|
"constructionCostMultiplier",
|
|
"tariffMultiplier",
|
|
"wearMultiplier",
|
|
"marketVolatilityMultiplier",
|
|
"aiCompetitors",
|
|
"aiCapitalMultiplier",
|
|
"aiCostDiscount",
|
|
"playerTakeover",
|
|
"takeoverRansomYears",
|
|
"bankruptcyDays",
|
|
"publicFromStart",
|
|
"playerShareAtStart",
|
|
"ironman",
|
|
"depletion"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"minItems": 4
|
|
}
|
|
},
|
|
"required": [
|
|
"version",
|
|
"default",
|
|
"depletionMultipliers",
|
|
"presets"
|
|
],
|
|
"additionalProperties": false
|
|
}
|