F1: economia headless, dati validati, generatore di mappa e salvataggi
- 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
This commit is contained in:
113 files changed
+12553
-23
No files matched your search
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "Livelli della compagnia (tiers.json)",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"ratingScale": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"AAA",
|
||||
"AA",
|
||||
"A",
|
||||
"BBB",
|
||||
"BB",
|
||||
"B",
|
||||
"CCC",
|
||||
"CC",
|
||||
"C",
|
||||
"D"
|
||||
]
|
||||
},
|
||||
"minItems": 10,
|
||||
"maxItems": 10,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"tiers": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"level": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 5
|
||||
},
|
||||
"name_it": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"name_en": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"requirements": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"netWorth": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"connectedTownsOver": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"count": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"population": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"count",
|
||||
"population"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"creditRating": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"AAA",
|
||||
"AA",
|
||||
"A",
|
||||
"BBB",
|
||||
"BB",
|
||||
"B",
|
||||
"CCC",
|
||||
"CC",
|
||||
"C",
|
||||
"D"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"netWorth",
|
||||
"connectedTownsOver",
|
||||
"creditRating"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"unlocks": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"maxLoanFactor": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
"crews": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"trading": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"buyIndustry": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"ipo": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"hostileTakeover": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"concessions": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"maxLoanFactor",
|
||||
"crews",
|
||||
"trading",
|
||||
"buyIndustry",
|
||||
"ipo",
|
||||
"hostileTakeover",
|
||||
"concessions"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"level",
|
||||
"name_it",
|
||||
"name_en",
|
||||
"requirements",
|
||||
"unlocks"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 5,
|
||||
"maxItems": 5
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"version",
|
||||
"ratingScale",
|
||||
"tiers"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in new issue
Block a user