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,28 @@
|
||||
{
|
||||
"$schema": "schema/ai.schema.json",
|
||||
"version": 1,
|
||||
"planning": {
|
||||
"intervalDays": 30,
|
||||
"maxCandidates": 40,
|
||||
"maxProjectsPerMonth": 2,
|
||||
"candidateMaxDistanceKm": 40,
|
||||
"candidateMinDistanceKm": 4,
|
||||
"pathSlopePenalty": 40,
|
||||
"pathWaterPenalty": 8,
|
||||
"trainsPerLine": 2,
|
||||
"wagonsPerTrain": 5,
|
||||
"cashReserveMonths": 3,
|
||||
"revenueHorizonYears": 10,
|
||||
"maxRejectedShare": 0.05
|
||||
},
|
||||
"personalities": [
|
||||
{ "id": "expansive", "name_it": "Espansiva", "roiThreshold": 0.08, "loanShareOfCredit": 0.8, "targetsPlayer": false, "buysShares": false, "maintenancePolicy": "standard" },
|
||||
{ "id": "prudent", "name_it": "Prudente", "roiThreshold": 0.15, "loanShareOfCredit": 0.3, "targetsPlayer": false, "buysShares": false, "maintenancePolicy": "standard" },
|
||||
{ "id": "predatory", "name_it": "Predatoria", "roiThreshold": 0.10, "loanShareOfCredit": 0.6, "targetsPlayer": true, "buysShares": true, "maintenancePolicy": "standard" }
|
||||
],
|
||||
"companyNames": [
|
||||
"Strade Ferrate del Nord", "Società Ferroviaria Adriatica", "Compagnia delle Valli", "Ferrovie Meridionali",
|
||||
"Società Anonima delle Strade Ferrate", "Ferrovia Alta Valle", "Compagnia Lombardo-Veneta", "Rete del Litorale"
|
||||
],
|
||||
"colors": [ "#3f86d1", "#5fc39b", "#b3573e", "#9cc9f2", "#d9c26a", "#7c8590" ]
|
||||
}
|
||||
@@ -0,0 +1,178 @@
|
||||
{
|
||||
"$schema": "schema/balance.schema.json",
|
||||
"version": 1,
|
||||
"time": {
|
||||
"tickMs": 50,
|
||||
"ticksPerDay": 240,
|
||||
"daysPerMonth": 30,
|
||||
"monthsPerYear": 12,
|
||||
"trainClockFactor": 60,
|
||||
"speeds": [ 0, 1, 2, 4, 8 ],
|
||||
"defaultStartYear": 1850
|
||||
},
|
||||
"map": {
|
||||
"cellSizeM": 100,
|
||||
"sizesKm": [ 64, 128, 256 ],
|
||||
"chunkCells": 64,
|
||||
"maxElevationM": 2200,
|
||||
"noise": { "octaves": 5, "baseWavelengthKm": 48, "persistence": 0.5, "lacunarity": 2.0,
|
||||
"warpStrengthKm": 9, "warpWavelengthKm": 36, "warpOctaves": 2,
|
||||
"ridgeOctaves": 4, "ridgeWavelengthKm": 28 },
|
||||
"relief": { "noiseAmplitudeM": 380, "noiseCoastFactor": 0.15, "inlandGradientM": 700, "inlandExponent": 2.0, "seaOffsetM": 25,
|
||||
"mountainAmplitudeM": 1400, "mountainStart": 0.55, "seaBandFraction": 0.03, "coastNoiseM": 90,
|
||||
"microReliefM": 6, "microWavelengthKm": 1.2 },
|
||||
"hydrology": { "riverThresholdKm2": 18, "riverWidthSteps": [ 1, 4, 16, 64 ], "carveDepthM": 4, "valleyRadiusCells": 3, "valleyDepthM": 6,
|
||||
"lakeMinDepthM": 3, "lakeMinCells": 8, "lakeMaxPercentile": 0.6, "minSourcePercentile": 0.30 },
|
||||
"cover": { "rockPercentile": 0.70, "rockMinSlope": 0.18, "mountainPercentile": 0.90, "hillMinSlope": 0.07, "hillPercentile": 0.55,
|
||||
"forestMinSlope": 0.03, "forestMaxSlope": 0.30, "forestNoiseThreshold": 0.52, "forestWavelengthKm": 6,
|
||||
"marshMaxPercentile": 0.25, "marshRiverDistanceCells": 4, "marshMaxSlope": 0.012, "marshNoiseThreshold": 0.6,
|
||||
"fieldRadiusCells": 14, "fieldShare": 0.35 },
|
||||
"deposits": { "perThousandKm2": { "coal": 0.8, "iron": 0.6, "stone": 0.7, "oil": 0.4 },
|
||||
"radiusCells": [ 3, 7 ], "reserveTonnes": { "coal": [ 250000, 900000 ], "iron": [ 200000, 700000 ], "stone": [ 400000, 1500000 ], "oil": [ 150000, 600000 ] },
|
||||
"minSpacingKm": 5, "preferredMinPercentile": { "coal": 0.45, "iron": 0.60, "stone": 0.40, "oil": 0.0 },
|
||||
"preferredMaxPercentile": { "coal": 0.92, "iron": 1.0, "stone": 0.95, "oil": 0.45 } },
|
||||
"towns": { "countBySize": { "64": 10, "128": 26, "256": 56 }, "minDistanceKm": 6, "maxWaterDistanceKm": 3, "maxSlope": 0.05,
|
||||
"maxHeightPercentile": 0.65, "largestPopulation": [ 11000, 18000 ], "zipfExponent": 0.85, "minPopulation": 500,
|
||||
"radiusBaseCells": 2.0, "radiusPerSqrtPop": 0.025 },
|
||||
"industries": { "countBySize": { "64": 32, "128": 110, "256": 400 }, "initialLevels": [ 1, 2 ],
|
||||
"shares": { "farm": 0.35, "logging": 0.12, "processing": 0.33, "manufacturing": 0.20 }, "placementAttempts": 400,
|
||||
"maxSlope": 0.15, "spacingCells": 1 },
|
||||
"hubs": { "ports": 1, "borders": 1, "portMinPopulationNearbyKm": 15 }
|
||||
},
|
||||
"market": {
|
||||
"k": 0.08,
|
||||
"alpha": 0.15,
|
||||
"windowDays": 30,
|
||||
"minPriceFactor": 0.3,
|
||||
"maxPriceFactor": 3.0,
|
||||
"ratioMin": 0.2,
|
||||
"ratioMax": 5.0,
|
||||
"world": { "amplitude": 0.12, "periodYears": 6, "volumeShare": 0.5, "baselinePerDay": 4.0, "elasticity": 1.0,
|
||||
"shockChancePerYear": 0.25, "shockMin": 0.08, "shockMax": 0.30, "shockDecayDays": 150 },
|
||||
"historyDays": 360
|
||||
},
|
||||
"localPrice": { "lambda": 0.35, "maxDeviation": 0.40, "epsilon": 1.0 },
|
||||
"industry": {
|
||||
"coverageWindowDays": 30,
|
||||
"profitFactorSlope": 0.5,
|
||||
"profitFactorMin": 0.6,
|
||||
"profitFactorMax": 1.2,
|
||||
"marginWindowDays": 90,
|
||||
"wagePerWorkerPerMonth": 1800,
|
||||
"wagePerStaffPerMonth": 5000,
|
||||
"onSiteWorkerShare": 0.30,
|
||||
"onSiteStaffShare": 0.30,
|
||||
"initialStockDays": 10,
|
||||
"footprintCells": { "small": 2, "medium": 3, "large": 4 },
|
||||
"depletionStartFraction": 0.20,
|
||||
"startingCash": 2000000
|
||||
},
|
||||
"growth": {
|
||||
"quarterDays": 90,
|
||||
"weightShipped": 0.5,
|
||||
"weightCoverage": 0.3,
|
||||
"weightProfit": 0.2,
|
||||
"upgradeThreshold": 0.75,
|
||||
"upgradeQuarters": 2,
|
||||
"downgradeThreshold": 0.35,
|
||||
"closeQuartersAtZero": 4,
|
||||
"maxLevel": 5,
|
||||
"spawnUnmetDays": 360,
|
||||
"spawnUnmetRatio": 1.25,
|
||||
"spawnMaxPerYear": 2
|
||||
},
|
||||
"town": {
|
||||
"baseGrowth": 0.002,
|
||||
"satisfactionWeight": 0.004,
|
||||
"employmentWeight": 0.003,
|
||||
"employmentPivot": 0.4,
|
||||
"maxMonthlyGrowth": 0.01,
|
||||
"satisfactionPivot": 0.5,
|
||||
"workforceShare": 0.40,
|
||||
"staffShare": 0.08,
|
||||
"staffMinPopulation": 5000,
|
||||
"staffMinServices": 2,
|
||||
"servicesSatisfactionThreshold": 0.5,
|
||||
"serviceJobsShare": 0.12,
|
||||
"satisfactionEmaDays": 30,
|
||||
"initialSatisfaction": 0.5,
|
||||
"stockDays": 20,
|
||||
"workSatisfactionPenalty": 0.05,
|
||||
"maxPopulation": 2000000
|
||||
},
|
||||
"migration": { "share": 0.01, "satisfactionThreshold": 0.4, "maxDistanceKm": 60, "emigrationShareWhenNoTarget": 0.5 },
|
||||
"employment": { "walkRadiusKm": 1.5, "workerMaxMinutes": 60, "staffMaxMinutes": 90, "coverageEmaDays": 30,
|
||||
"dissolveCoverage": 0.5, "dissolveDays": 90, "walkSpeedKmh": 4.5 },
|
||||
"localTransport": { "enabled": true, "radiusKm": 3.0, "dailyShare": 0.25, "maxUnitsPerDay": 6 },
|
||||
"hubs": {
|
||||
"port": { "name_it": "Porto", "monthlyCapacity": 3000, "duty": 0.08, "footprint": "large" },
|
||||
"border": { "name_it": "Valico", "monthlyCapacity": 1500, "duty": 0.12, "footprint": "small" }
|
||||
},
|
||||
"tariffs": {
|
||||
"freightBaseRate": 150,
|
||||
"freightFixedWeight": 0.6,
|
||||
"freightPriceWeight": 0.4,
|
||||
"freightKmExponent": 0.9,
|
||||
"paxBaseFare": 45,
|
||||
"paxKmExponent": 0.85,
|
||||
"classMultipliers": { "worker": 1.0, "staff": 3.0 },
|
||||
"lateThreshold": 1.5,
|
||||
"lateFactorMin": 0.5,
|
||||
"lateFactorSpan": 1.0
|
||||
},
|
||||
"finance": {
|
||||
"ratingSpreads": { "AAA": 0.005, "AA": 0.01, "A": 0.015, "BBB": 0.025, "BB": 0.035, "B": 0.05, "CCC": 0.07, "CC": 0.09, "C": 0.12, "D": 0.18 },
|
||||
"ratingByScore": [ 0.85, 0.75, 0.65, 0.55, 0.45, 0.35, 0.25, 0.15, 0.05 ],
|
||||
"profitMarginWeight": 0.6,
|
||||
"leverageWeight": 0.4,
|
||||
"loanTermMonths": 120,
|
||||
"loanStep": 5000000,
|
||||
"startingRating": "BB",
|
||||
"depreciationYearsTrack": 50,
|
||||
"bookValueFloor": 0.1
|
||||
},
|
||||
"stockMarket": {
|
||||
"shares": 1000000,
|
||||
"earningsMultiple": 8,
|
||||
"sentimentMin": 0.8,
|
||||
"sentimentMax": 1.3,
|
||||
"spread": 0.01,
|
||||
"ipoMaxShare": 0.4,
|
||||
"controlShare": 0.5,
|
||||
"mergeAfterDays": 360,
|
||||
"bidPremiumMin": 0.2,
|
||||
"bidPremiumMax": 0.5,
|
||||
"bidDurationDays": 90,
|
||||
"ransomShare": 0.51,
|
||||
"receivershipDividend": 0.5
|
||||
},
|
||||
"industryMaintenance": {
|
||||
"wearPerDay": 0.06,
|
||||
"efficiencyFullAbove": 70,
|
||||
"efficiencyAt20": 0.5,
|
||||
"efficiencyBelow20": 0.3,
|
||||
"breakdownBase": 0.001,
|
||||
"breakdownPivot": 40,
|
||||
"breakdownScale": 8,
|
||||
"breakdownDays": [ 5, 20 ],
|
||||
"breakdownTownSatisfaction": 0.02,
|
||||
"accidentBelow": 10,
|
||||
"accidentDays": 60,
|
||||
"accidentPopulationLoss": 0.002,
|
||||
"budgets": {
|
||||
"none": { "recoveryPerDay": 0.0, "costShareOfRevenue": 0.0, "sparePartsPerLevelPerMonth": 0 },
|
||||
"base": { "recoveryPerDay": 0.05, "costShareOfRevenue": 0.03, "sparePartsPerLevelPerMonth": 1 },
|
||||
"high": { "recoveryPerDay": 0.12, "costShareOfRevenue": 0.07, "sparePartsPerLevelPerMonth": 3 }
|
||||
},
|
||||
"noPartsRecoveryFactor": 0.5,
|
||||
"overhaulDays": 30,
|
||||
"overhaulMachineryPerLevel": 2,
|
||||
"overhaulMinStaffCoverage": 0.8,
|
||||
"upgradeMachineryPerLevel": 5,
|
||||
"upgradeDays": 60,
|
||||
"npcUpgradeMargin": 0.15,
|
||||
"npcUpgradeYears": 2,
|
||||
"npcHighMargin": 0.15,
|
||||
"npcOverhaulBelow": 35
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
{
|
||||
"$schema": "schema/construction.schema.json",
|
||||
"version": 1,
|
||||
"profile": {
|
||||
"sampleSpacingM": 25,
|
||||
"heightOffsetRangeM": 20,
|
||||
"smoothingWindow": 5,
|
||||
"naturalToleranceM": 1.5,
|
||||
"embankmentMaxM": 8,
|
||||
"cuttingMaxM": 8,
|
||||
"riverClearanceM": 6,
|
||||
"navigableClearanceM": 12,
|
||||
"navigableMinWidthCells": 3,
|
||||
"snapAngleDeg": 45
|
||||
},
|
||||
"maxGradientByTraction": { "steam": 0.025, "diesel": 0.035, "electric": 0.04, "highspeed": 0.035 },
|
||||
"speedClasses": [
|
||||
{ "trackClass": "c60", "minRadiusM": 200, "costMultiplier": 1.0 },
|
||||
{ "trackClass": "c100", "minRadiusM": 400, "costMultiplier": 1.4 },
|
||||
{ "trackClass": "c160", "minRadiusM": 900, "costMultiplier": 2.2 },
|
||||
{ "trackClass": "c250", "minRadiusM": 2500, "costMultiplier": 4.0 }
|
||||
],
|
||||
"curveSpeedFactor": 0.65,
|
||||
"costs": {
|
||||
"basePerMeter": 1200,
|
||||
"natural": 1.0,
|
||||
"embankmentPerM": 0.25,
|
||||
"cuttingPerM": 0.35,
|
||||
"bridgeBase": 6.0,
|
||||
"bridgePerM": 0.5,
|
||||
"tunnel": 12.0,
|
||||
"terrainModifiers": { "rock": 1.8, "marsh": 1.6, "mountain": 1.4, "forest": 1.15 },
|
||||
"land": { "basePerCell": 20000, "nearTownKm": 2.0, "nearTownMultiplier": 3.0, "fieldMultiplier": 2.0 },
|
||||
"doubleTrackMultiplier": 1.8,
|
||||
"electrificationExtra": 0.35,
|
||||
"stationBase": 4000000,
|
||||
"stationPerPlatform": 1500000,
|
||||
"depotBySize": { "small": 6000000, "medium": 12000000, "large": 24000000 },
|
||||
"demolitionRefund": 0.1
|
||||
},
|
||||
"crews": {
|
||||
"metersPerDay": { "natural": 200, "embankment": 60, "cutting": 60, "bridge": 20, "tunnel": 8 },
|
||||
"crewsByTier": [ 2, 4, 8, 12, 20 ],
|
||||
"upgradeClosure": true
|
||||
},
|
||||
"rules": {
|
||||
"forbidTownFootprint": true,
|
||||
"forbidIndustryFootprint": true,
|
||||
"forbidForeignStations": true,
|
||||
"foreignCrossingNeedsOverpass": true,
|
||||
"overpassClearanceM": 7
|
||||
},
|
||||
"trackWear": {
|
||||
"k": 400000,
|
||||
"gradientWeight": 8,
|
||||
"speedWeight": 0.4,
|
||||
"maintenanceDriftPerDay": 0.02,
|
||||
"maintenanceCostPerKmPerDay": 400,
|
||||
"limitBelow60": 0.6,
|
||||
"limitBelow30": 0.3,
|
||||
"failureChanceBelow30": 0.002,
|
||||
"renewalCostShare": 0.4,
|
||||
"renewalDaysPerKm": 3
|
||||
},
|
||||
"structures": {
|
||||
"inspectionCostShare": 0.01,
|
||||
"inspectionIntervalDays": 360,
|
||||
"renewalYears": 50,
|
||||
"missedInspectionWearPerDay": 0.03,
|
||||
"speedLimitBelow": 50,
|
||||
"speedLimitFactor": 0.5,
|
||||
"closeBelow": 15
|
||||
},
|
||||
"physics": {
|
||||
"gravity": 9.81,
|
||||
"adhesion": 0.3,
|
||||
"adhesionFactor": 0.3,
|
||||
"rollingResistance": 0.0015,
|
||||
"aeroCoefficient": 0.6,
|
||||
"cxByKind": { "locomotive": 0.0025, "wagon": 0.0012, "coach": 0.0015 },
|
||||
"brakingMs2": 0.5,
|
||||
"stallSpeedKmh": 1.0,
|
||||
"stallSeconds": 120
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"$schema": "schema/contracts.schema.json",
|
||||
"version": 1,
|
||||
"generation": { "perYear": 3, "maxOpen": 6, "expoEveryYears": 12 },
|
||||
"templates": [
|
||||
{ "id": "connect_towns", "kind": "connect", "name_it": "Collegamento tra città",
|
||||
"text_it": "Collega {a} a {b} entro il {deadline} con un tempo di viaggio inferiore a {minutes} minuti",
|
||||
"durationYears": [ 3, 8 ], "maxMinutes": [ 60, 150 ], "reward": 20000000, "prestige": 10, "penalty": 5000000, "minYear": 1850 },
|
||||
{ "id": "deliver_goods", "kind": "deliver", "name_it": "Fornitura straordinaria",
|
||||
"text_it": "Trasporta {qty} {unit} di {good} a {b} prima del {deadline}",
|
||||
"durationYears": [ 1, 3 ], "quantity": [ 5000, 50000 ], "reward": 15000000, "prestige": 6, "penalty": 3000000, "minYear": 1850 },
|
||||
{ "id": "great_tunnel", "kind": "greatWork", "name_it": "Traforo",
|
||||
"text_it": "Traforo di {length} km tra {a} e {b} entro il {deadline}",
|
||||
"durationYears": [ 6, 10 ], "lengthKm": [ 4, 12 ], "reward": 120000000, "prestige": 50, "penalty": 30000000, "minYear": 1870 },
|
||||
{ "id": "great_bridge", "kind": "greatWork", "name_it": "Grande ponte",
|
||||
"text_it": "Ponte di almeno {length} m su {river} entro il {deadline}",
|
||||
"durationYears": [ 4, 8 ], "lengthKm": [ 0.3, 1.2 ], "reward": 60000000, "prestige": 30, "penalty": 15000000, "minYear": 1870 },
|
||||
{ "id": "service_obligation", "kind": "service", "name_it": "Servizio pubblico",
|
||||
"text_it": "Garantisci {qty} posti al giorno tra {a} e {b} per {years} anni",
|
||||
"durationYears": [ 2, 5 ], "quantity": [ 100, 600 ], "reward": 8000000, "prestige": 5, "penalty": 4000000, "minYear": 1850 }
|
||||
],
|
||||
"expositions": [
|
||||
{ "id": "fastest_line", "name_it": "Linea più veloce", "reward": 30000000, "prestige": 25 },
|
||||
{ "id": "longest_bridge", "name_it": "Ponte più lungo", "reward": 20000000, "prestige": 20 },
|
||||
{ "id": "largest_station", "name_it": "Stazione più grande", "reward": 15000000, "prestige": 15 }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"$schema": "schema/difficulty.schema.json",
|
||||
"version": 1,
|
||||
"default": "imprenditore",
|
||||
"depletionMultipliers": { "slow": 0.5, "normal": 1.0, "fast": 1.6 },
|
||||
"presets": [
|
||||
{ "id": "apprendista", "name_it": "Apprendista", "name_en": "Apprentice",
|
||||
"initialCapital": 50000000, "initialCredit": 50000000, "baseInterestRate": 0.03,
|
||||
"constructionCostMultiplier": 0.8, "tariffMultiplier": 1.15, "wearMultiplier": 0.7, "marketVolatilityMultiplier": 0.6,
|
||||
"aiCompetitors": 1, "aiCapitalMultiplier": 0.7, "aiCostDiscount": 0.0,
|
||||
"playerTakeover": "disabled", "takeoverRansomYears": 0, "bankruptcyDays": 180,
|
||||
"publicFromStart": false, "playerShareAtStart": 1.0, "ironman": "no", "depletion": "slow" },
|
||||
{ "id": "imprenditore", "name_it": "Imprenditore", "name_en": "Entrepreneur",
|
||||
"initialCapital": 25000000, "initialCredit": 30000000, "baseInterestRate": 0.05,
|
||||
"constructionCostMultiplier": 1.0, "tariffMultiplier": 1.0, "wearMultiplier": 1.0, "marketVolatilityMultiplier": 1.0,
|
||||
"aiCompetitors": 2, "aiCapitalMultiplier": 1.0, "aiCostDiscount": 0.0,
|
||||
"playerTakeover": "ransom", "takeoverRansomYears": 3, "bankruptcyDays": 90,
|
||||
"publicFromStart": false, "playerShareAtStart": 1.0, "ironman": "optional", "depletion": "normal" },
|
||||
{ "id": "magnate", "name_it": "Magnate", "name_en": "Tycoon",
|
||||
"initialCapital": 15000000, "initialCredit": 15000000, "baseInterestRate": 0.07,
|
||||
"constructionCostMultiplier": 1.25, "tariffMultiplier": 0.9, "wearMultiplier": 1.3, "marketVolatilityMultiplier": 1.3,
|
||||
"aiCompetitors": 3, "aiCapitalMultiplier": 1.5, "aiCostDiscount": 0.10,
|
||||
"playerTakeover": "ransom", "takeoverRansomYears": 1, "bankruptcyDays": 60,
|
||||
"publicFromStart": false, "playerShareAtStart": 1.0, "ironman": "optional", "depletion": "fast" },
|
||||
{ "id": "ferro_e_sangue", "name_it": "Ferro e sangue", "name_en": "Iron and blood",
|
||||
"initialCapital": 10000000, "initialCredit": 10000000, "baseInterestRate": 0.09,
|
||||
"constructionCostMultiplier": 1.5, "tariffMultiplier": 0.8, "wearMultiplier": 1.6, "marketVolatilityMultiplier": 1.6,
|
||||
"aiCompetitors": 5, "aiCapitalMultiplier": 2.0, "aiCostDiscount": 0.20,
|
||||
"playerTakeover": "immediate", "takeoverRansomYears": 0, "bankruptcyDays": 30,
|
||||
"publicFromStart": true, "playerShareAtStart": 0.6, "ironman": "yes", "depletion": "fast" }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"$schema": "schema/eras.schema.json",
|
||||
"version": 1,
|
||||
"eras": [
|
||||
{ "id": "steam", "name_it": "Era del vapore", "name_en": "Steam era", "from": 1850 },
|
||||
{ "id": "diesel", "name_it": "Era diesel", "name_en": "Diesel era", "from": 1925 },
|
||||
{ "id": "electric", "name_it": "Era elettrica", "name_en": "Electric era", "from": 1950 },
|
||||
{ "id": "highspeed", "name_it": "Alta velocità", "name_en": "High speed", "from": 1990 }
|
||||
],
|
||||
"tractions": [
|
||||
{ "id": "steam", "name_it": "Vapore", "from": 1850, "needsElectrification": false },
|
||||
{ "id": "diesel", "name_it": "Diesel", "from": 1925, "needsElectrification": false },
|
||||
{ "id": "electric", "name_it": "Elettrica", "from": 1950, "needsElectrification": true },
|
||||
{ "id": "highspeed", "name_it": "Alta velocità", "from": 1990, "needsElectrification": true }
|
||||
],
|
||||
"bridgeTypes": [
|
||||
{ "id": "wood", "name_it": "Legno", "from": 1850, "maxSpanM": 60, "costMultiplier": 1.0, "lifeYears": 40 },
|
||||
{ "id": "iron", "name_it": "Ferro", "from": 1870, "maxSpanM": 150, "costMultiplier": 1.25, "lifeYears": 50 },
|
||||
{ "id": "steel", "name_it": "Acciaio", "from": 1900, "maxSpanM": 400, "costMultiplier": 1.5, "lifeYears": 60 },
|
||||
{ "id": "concrete", "name_it": "Cemento armato", "from": 1950, "maxSpanM": 800, "costMultiplier": 1.4, "lifeYears": 70 }
|
||||
],
|
||||
"tunnelLimits": [
|
||||
{ "from": 1850, "maxLengthM": 1000 },
|
||||
{ "from": 1900, "maxLengthM": 5000 },
|
||||
{ "from": 1950, "maxLengthM": 15000 }
|
||||
],
|
||||
"trackClasses": [
|
||||
{ "id": "c60", "name_it": "Ordinario 60 km/h", "speedKmh": 60, "from": 1850 },
|
||||
{ "id": "c100", "name_it": "Rinforzato 100 km/h", "speedKmh": 100, "from": 1875 },
|
||||
{ "id": "c160", "name_it": "Direttissimo 160 km/h", "speedKmh": 160, "from": 1935 },
|
||||
{ "id": "c250", "name_it": "Alta velocità 250 km/h", "speedKmh": 250, "from": 1990 }
|
||||
],
|
||||
"signals": [
|
||||
{ "id": "semaphore", "name_it": "Semaforo ad ala", "from": 1850, "price": 80000 },
|
||||
{ "id": "light", "name_it": "Segnale luminoso", "from": 1930, "price": 150000 },
|
||||
{ "id": "cab", "name_it": "Segnalamento in cabina", "from": 1990, "price": 400000 }
|
||||
],
|
||||
"electrificationFrom": 1950
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"$schema": "schema/goods.schema.json",
|
||||
"version": 1,
|
||||
"goods": [
|
||||
{ "id": "coal", "name_it": "Carbone", "name_en": "Coal", "category": "bulk", "unit": "t", "wagon": "hopper",
|
||||
"basePrice": 3800, "elasticity": 0.6, "decayDaysAtStation": 60, "era": 1850,
|
||||
"town": { "category": "fuel", "demandPerThousand": 0.12, "untilYear": 1960 } },
|
||||
{ "id": "iron_ore", "name_it": "Minerale di ferro", "name_en": "Iron ore", "category": "bulk", "unit": "t", "wagon": "hopper",
|
||||
"basePrice": 4200, "elasticity": 0.5, "decayDaysAtStation": 90, "era": 1850 },
|
||||
{ "id": "stone", "name_it": "Pietra", "name_en": "Stone", "category": "bulk", "unit": "t", "wagon": "hopper",
|
||||
"basePrice": 2500, "elasticity": 0.4, "decayDaysAtStation": 120, "era": 1850 },
|
||||
{ "id": "crude_oil", "name_it": "Petrolio", "name_en": "Crude oil", "category": "liquid", "unit": "t", "wagon": "tank",
|
||||
"basePrice": 6500, "elasticity": 0.7, "decayDaysAtStation": 60, "era": 1860 },
|
||||
{ "id": "logs", "name_it": "Tronchi", "name_en": "Logs", "category": "bulk", "unit": "t", "wagon": "flat",
|
||||
"basePrice": 3000, "elasticity": 0.5, "decayDaysAtStation": 45, "era": 1850 },
|
||||
{ "id": "grain", "name_it": "Grano", "name_en": "Grain", "category": "bulk", "unit": "t", "wagon": "hopper",
|
||||
"basePrice": 5000, "elasticity": 0.6, "decayDaysAtStation": 30, "era": 1850 },
|
||||
{ "id": "livestock", "name_it": "Bestiame", "name_en": "Livestock", "category": "perishable", "unit": "capi", "wagon": "box",
|
||||
"basePrice": 9000, "elasticity": 0.7, "decayDaysAtStation": 8, "era": 1850 },
|
||||
{ "id": "lumber", "name_it": "Legname", "name_en": "Lumber", "category": "general", "unit": "t", "wagon": "flat",
|
||||
"basePrice": 8000, "elasticity": 0.6, "decayDaysAtStation": 90, "era": 1850,
|
||||
"town": { "category": "construction", "demandPerThousand": 0.10 } },
|
||||
{ "id": "steel", "name_it": "Acciaio", "name_en": "Steel", "category": "general", "unit": "t", "wagon": "flat",
|
||||
"basePrice": 16000, "elasticity": 0.8, "decayDaysAtStation": 120, "era": 1850 },
|
||||
{ "id": "food", "name_it": "Alimentari", "name_en": "Food", "category": "perishable", "unit": "t", "wagon": "box",
|
||||
"basePrice": 12000, "elasticity": 0.3, "decayDaysAtStation": 10, "era": 1850,
|
||||
"town": { "category": "food", "demandPerThousand": 0.45 } },
|
||||
{ "id": "fuel", "name_it": "Carburante", "name_en": "Fuel", "category": "liquid", "unit": "t", "wagon": "tank",
|
||||
"basePrice": 16000, "elasticity": 0.5, "decayDaysAtStation": 90, "era": 1870,
|
||||
"town": { "category": "fuel", "demandPerThousand": 0.12 } },
|
||||
{ "id": "building_materials", "name_it": "Materiali edili", "name_en": "Building materials", "category": "general", "unit": "t", "wagon": "flat",
|
||||
"basePrice": 6000, "elasticity": 0.7, "decayDaysAtStation": 120, "era": 1850,
|
||||
"town": { "category": "construction", "demandPerThousand": 0.18 } },
|
||||
{ "id": "tools", "name_it": "Attrezzi", "name_en": "Tools", "category": "general", "unit": "casse", "wagon": "box",
|
||||
"basePrice": 22000, "elasticity": 0.8, "decayDaysAtStation": 120, "era": 1850,
|
||||
"town": { "category": "goods", "demandPerThousand": 0.06 } },
|
||||
{ "id": "goods", "name_it": "Merci varie", "name_en": "Goods", "category": "general", "unit": "casse", "wagon": "box",
|
||||
"basePrice": 20000, "elasticity": 0.9, "decayDaysAtStation": 60, "era": 1850,
|
||||
"town": { "category": "goods", "demandPerThousand": 0.20 } },
|
||||
{ "id": "machinery", "name_it": "Macchinari", "name_en": "Machinery", "category": "general", "unit": "pz", "wagon": "flat",
|
||||
"basePrice": 45000, "elasticity": 0.6, "decayDaysAtStation": 180, "era": 1850, "service": true },
|
||||
{ "id": "spare_parts", "name_it": "Ricambi", "name_en": "Spare parts", "category": "general", "unit": "casse", "wagon": "box",
|
||||
"basePrice": 30000, "elasticity": 0.5, "decayDaysAtStation": 180, "era": 1850, "service": true }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"$schema": "schema/industries.schema.json",
|
||||
"version": 1,
|
||||
"industries": [
|
||||
{ "id": "coal_mine", "name_it": "Miniera di carbone", "name_en": "Coal mine", "kind": "primary",
|
||||
"recipe": { "inputs": [], "outputs": [ { "good": "coal", "perCycle": 1 } ] },
|
||||
"cycleDays": 1, "capacityPerLevel": [150, 300, 500, 800, 1200], "workersPerLevel": [30, 60, 120, 200, 300], "staffPerLevel": [1, 3, 6, 10, 16],
|
||||
"storageDays": 30, "wearIntensity": 1.3, "footprint": "medium",
|
||||
"placement": { "needs": "deposit", "resource": "coal", "minTownDistanceKm": 2 },
|
||||
"depletable": true, "era": 1850, "upgradeCost": 1500000, "spawnWeight": 1.0 },
|
||||
{ "id": "iron_mine", "name_it": "Miniera di ferro", "name_en": "Iron mine", "kind": "primary",
|
||||
"recipe": { "inputs": [], "outputs": [ { "good": "iron_ore", "perCycle": 1 } ] },
|
||||
"cycleDays": 1, "capacityPerLevel": [150, 300, 500, 800, 1200], "workersPerLevel": [30, 60, 120, 200, 300], "staffPerLevel": [1, 3, 6, 10, 16],
|
||||
"storageDays": 30, "wearIntensity": 1.3, "footprint": "medium",
|
||||
"placement": { "needs": "deposit", "resource": "iron", "minTownDistanceKm": 2 },
|
||||
"depletable": true, "era": 1850, "upgradeCost": 1500000, "spawnWeight": 1.0 },
|
||||
{ "id": "quarry", "name_it": "Cava di pietra", "name_en": "Stone quarry", "kind": "primary",
|
||||
"recipe": { "inputs": [], "outputs": [ { "good": "stone", "perCycle": 1 } ] },
|
||||
"cycleDays": 1, "capacityPerLevel": [200, 400, 650, 1000, 1500], "workersPerLevel": [20, 40, 80, 130, 200], "staffPerLevel": [1, 2, 4, 7, 10],
|
||||
"storageDays": 40, "wearIntensity": 1.0, "footprint": "medium",
|
||||
"placement": { "needs": "deposit", "resource": "stone", "minTownDistanceKm": 1.5 },
|
||||
"depletable": true, "era": 1850, "upgradeCost": 1000000, "spawnWeight": 0.8 },
|
||||
{ "id": "oil_well", "name_it": "Pozzo di petrolio", "name_en": "Oil well", "kind": "primary",
|
||||
"recipe": { "inputs": [], "outputs": [ { "good": "crude_oil", "perCycle": 1 } ] },
|
||||
"cycleDays": 1, "capacityPerLevel": [120, 240, 400, 650, 1000], "workersPerLevel": [15, 30, 60, 100, 150], "staffPerLevel": [2, 4, 8, 12, 18],
|
||||
"storageDays": 30, "wearIntensity": 1.1, "footprint": "small",
|
||||
"placement": { "needs": "deposit", "resource": "oil", "minTownDistanceKm": 2 },
|
||||
"depletable": true, "era": 1860, "upgradeCost": 2000000, "spawnWeight": 0.6 },
|
||||
{ "id": "logging_camp", "name_it": "Taglialegna", "name_en": "Logging camp", "kind": "primary",
|
||||
"recipe": { "inputs": [], "outputs": [ { "good": "logs", "perCycle": 1 } ] },
|
||||
"cycleDays": 1, "capacityPerLevel": [150, 300, 500, 750, 1100], "workersPerLevel": [20, 40, 80, 120, 180], "staffPerLevel": [0, 1, 2, 4, 6],
|
||||
"storageDays": 30, "wearIntensity": 0.8, "footprint": "medium",
|
||||
"placement": { "needs": "forest", "minTownDistanceKm": 2 },
|
||||
"depletable": false, "era": 1850, "upgradeCost": 800000, "spawnWeight": 1.0 },
|
||||
{ "id": "farm", "name_it": "Fattoria", "name_en": "Farm", "kind": "primary",
|
||||
"recipe": { "inputs": [], "outputs": [ { "good": "grain", "perCycle": 2 }, { "good": "livestock", "perCycle": 1 } ] },
|
||||
"cycleDays": 1, "capacityPerLevel": [160, 320, 520, 800, 1200], "workersPerLevel": [15, 30, 60, 100, 150], "staffPerLevel": [0, 1, 2, 3, 5],
|
||||
"storageDays": 20, "wearIntensity": 0.6, "footprint": "large",
|
||||
"placement": { "needs": "plain", "minTownDistanceKm": 2, "maxTownDistanceKm": 10 },
|
||||
"depletable": false, "era": 1850, "upgradeCost": 600000, "spawnWeight": 1.4 },
|
||||
{ "id": "sawmill", "name_it": "Segheria", "name_en": "Sawmill", "kind": "processing",
|
||||
"recipe": { "inputs": [ { "good": "logs", "perCycle": 2 } ], "outputs": [ { "good": "lumber", "perCycle": 1 } ] },
|
||||
"cycleDays": 1, "capacityPerLevel": [100, 200, 340, 520, 780], "workersPerLevel": [20, 40, 80, 130, 190], "staffPerLevel": [1, 2, 5, 8, 12],
|
||||
"storageDays": 30, "wearIntensity": 1.0, "footprint": "medium",
|
||||
"placement": { "needs": "any", "minTownDistanceKm": 2, "maxTownDistanceKm": 12, "maxInputDistanceKm": 12 },
|
||||
"depletable": false, "era": 1850, "upgradeCost": 1200000, "spawnWeight": 0.9 },
|
||||
{ "id": "steel_mill", "name_it": "Acciaieria", "name_en": "Steel mill", "kind": "processing",
|
||||
"recipe": { "inputs": [ { "good": "iron_ore", "perCycle": 2 }, { "good": "coal", "perCycle": 1 } ], "outputs": [ { "good": "steel", "perCycle": 1 } ] },
|
||||
"cycleDays": 1, "capacityPerLevel": [120, 240, 400, 600, 900], "workersPerLevel": [40, 80, 160, 240, 320], "staffPerLevel": [2, 6, 12, 20, 30],
|
||||
"storageDays": 30, "wearIntensity": 1.2, "footprint": "large",
|
||||
"placement": { "needs": "any", "minTownDistanceKm": 2, "maxTownDistanceKm": 12, "maxInputDistanceKm": 12 },
|
||||
"depletable": false, "era": 1850, "upgradeCost": 3000000, "spawnWeight": 0.7 },
|
||||
{ "id": "food_plant", "name_it": "Industria alimentare", "name_en": "Food plant", "kind": "processing",
|
||||
"recipe": { "inputs": [ { "good": "grain", "perCycle": 2 }, { "good": "livestock", "perCycle": 1 } ], "outputs": [ { "good": "food", "perCycle": 2 } ] },
|
||||
"cycleDays": 1, "capacityPerLevel": [150, 300, 500, 760, 1100], "workersPerLevel": [30, 60, 110, 170, 240], "staffPerLevel": [1, 3, 6, 10, 15],
|
||||
"storageDays": 15, "wearIntensity": 0.9, "footprint": "medium",
|
||||
"placement": { "needs": "any", "minTownDistanceKm": 2, "maxTownDistanceKm": 12, "maxInputDistanceKm": 12 },
|
||||
"depletable": false, "era": 1850, "upgradeCost": 1500000, "spawnWeight": 1.0 },
|
||||
{ "id": "refinery", "name_it": "Raffineria", "name_en": "Refinery", "kind": "processing",
|
||||
"recipe": { "inputs": [ { "good": "crude_oil", "perCycle": 2 } ], "outputs": [ { "good": "fuel", "perCycle": 1 } ] },
|
||||
"cycleDays": 1, "capacityPerLevel": [100, 200, 340, 520, 800], "workersPerLevel": [30, 60, 110, 170, 240], "staffPerLevel": [3, 6, 12, 20, 30],
|
||||
"storageDays": 30, "wearIntensity": 1.4, "footprint": "large",
|
||||
"placement": { "needs": "any", "minTownDistanceKm": 3, "maxTownDistanceKm": 12, "maxInputDistanceKm": 12 },
|
||||
"depletable": false, "era": 1870, "upgradeCost": 3500000, "spawnWeight": 0.5 },
|
||||
{ "id": "brickworks", "name_it": "Fornace di laterizi", "name_en": "Brickworks", "kind": "processing",
|
||||
"recipe": { "inputs": [ { "good": "stone", "perCycle": 2 }, { "good": "coal", "perCycle": 1 } ], "outputs": [ { "good": "building_materials", "perCycle": 2 } ] },
|
||||
"cycleDays": 1, "capacityPerLevel": [140, 280, 460, 700, 1000], "workersPerLevel": [25, 50, 90, 140, 200], "staffPerLevel": [1, 2, 4, 7, 10],
|
||||
"storageDays": 40, "wearIntensity": 1.1, "footprint": "medium",
|
||||
"placement": { "needs": "any", "minTownDistanceKm": 2, "maxTownDistanceKm": 12, "maxInputDistanceKm": 12 },
|
||||
"depletable": false, "era": 1850, "upgradeCost": 1000000, "spawnWeight": 0.8 },
|
||||
{ "id": "tool_factory", "name_it": "Fabbrica di attrezzi", "name_en": "Tool factory", "kind": "manufacturing",
|
||||
"recipe": { "inputs": [ { "good": "steel", "perCycle": 2 }, { "good": "coal", "perCycle": 1 } ], "outputs": [ { "good": "tools", "perCycle": 2 } ] },
|
||||
"cycleDays": 1, "capacityPerLevel": [60, 120, 200, 300, 450], "workersPerLevel": [30, 60, 110, 170, 240], "staffPerLevel": [3, 6, 12, 18, 26],
|
||||
"storageDays": 30, "wearIntensity": 1.0, "footprint": "medium",
|
||||
"placement": { "needs": "town", "maxTownDistanceKm": 2.5 },
|
||||
"depletable": false, "era": 1850, "upgradeCost": 2000000, "spawnWeight": 0.6 },
|
||||
{ "id": "goods_factory", "name_it": "Manifattura", "name_en": "Goods factory", "kind": "manufacturing",
|
||||
"recipe": { "inputs": [ { "good": "lumber", "perCycle": 2 }, { "good": "steel", "perCycle": 1 } ], "outputs": [ { "good": "goods", "perCycle": 3 } ] },
|
||||
"cycleDays": 1, "capacityPerLevel": [120, 240, 400, 600, 900], "workersPerLevel": [40, 80, 150, 230, 320], "staffPerLevel": [3, 6, 12, 18, 26],
|
||||
"storageDays": 30, "wearIntensity": 0.9, "footprint": "medium",
|
||||
"placement": { "needs": "town", "maxTownDistanceKm": 2.5 },
|
||||
"depletable": false, "era": 1850, "upgradeCost": 1800000, "spawnWeight": 0.8 },
|
||||
{ "id": "machine_factory", "name_it": "Fabbrica di macchinari", "name_en": "Machine factory", "kind": "manufacturing",
|
||||
"recipe": { "inputs": [ { "good": "steel", "perCycle": 2 }, { "good": "tools", "perCycle": 1 } ], "outputs": [ { "good": "machinery", "perCycle": 1 }, { "good": "spare_parts", "perCycle": 2 } ] },
|
||||
"cycleDays": 1, "capacityPerLevel": [40, 80, 140, 210, 320], "workersPerLevel": [40, 80, 150, 230, 320], "staffPerLevel": [6, 12, 24, 36, 50],
|
||||
"storageDays": 60, "wearIntensity": 1.0, "footprint": "large",
|
||||
"placement": { "needs": "town", "maxTownDistanceKm": 2.5, "minTownPopulation": 4000 },
|
||||
"depletable": false, "era": 1850, "upgradeCost": 4000000, "spawnWeight": 0.4 }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"$schema": "schema/maintenance.schema.json",
|
||||
"version": 1,
|
||||
"components": {
|
||||
"locomotive": [
|
||||
{ "id": "engine", "name_it": "Motore o caldaia", "failureWeight": 0.40, "wearPer100Km": 0.25 },
|
||||
{ "id": "wheelsets", "name_it": "Rodiggio e assali", "failureWeight": 0.25, "wearPer100Km": 0.20 },
|
||||
{ "id": "brakes", "name_it": "Freni", "failureWeight": 0.20, "wearPer100Km": 0.35 },
|
||||
{ "id": "electrics", "name_it": "Impianto elettrico o trasmissione", "failureWeight": 0.15, "wearPer100Km": 0.15 }
|
||||
],
|
||||
"car": [
|
||||
{ "id": "axles", "name_it": "Assali", "failureWeight": 0.5, "wearPer100Km": 0.15 },
|
||||
{ "id": "brakes", "name_it": "Freni", "failureWeight": 0.3, "wearPer100Km": 0.30 },
|
||||
{ "id": "body", "name_it": "Cassa", "failureWeight": 0.2, "wearPer100Km": 0.08 }
|
||||
]
|
||||
},
|
||||
"wear": {
|
||||
"gradientThreshold": 0.015,
|
||||
"gradientWeight": 2.0,
|
||||
"highSpeedThreshold": 0.8,
|
||||
"highSpeedWeight": 0.5,
|
||||
"loadWeight": 0.3,
|
||||
"ageStepYears": 5,
|
||||
"ageStepFactor": 0.5
|
||||
},
|
||||
"failure": {
|
||||
"h0": 0.002,
|
||||
"slope": 0.8,
|
||||
"pivot": 50,
|
||||
"scale": 10,
|
||||
"healthyDivisor": 4,
|
||||
"minorShare": 0.70,
|
||||
"majorShare": 0.27,
|
||||
"catastrophicShare": 0.03,
|
||||
"catastrophicMaxCondition": 15,
|
||||
"catastrophicMinSpeedShare": 0.8,
|
||||
"minorSpeedFactor": 0.5,
|
||||
"rescueSpeedKmh": 40,
|
||||
"rescueExtraHours": 2,
|
||||
"derailmentTrackDays": 3,
|
||||
"derailmentSatisfaction": 0.05
|
||||
},
|
||||
"effects": {
|
||||
"engineSpeedBelow": 70,
|
||||
"engineSpeedBase": 0.6,
|
||||
"engineSpeedSpan": 0.4,
|
||||
"fuelPenalty": 0.4,
|
||||
"comfortMin": 0.8,
|
||||
"comfortMax": 1.05
|
||||
},
|
||||
"interventions": [
|
||||
{ "id": "inspection", "name_it": "Ispezione", "days": 1, "costShare": 0.005, "spareParts": 0, "effect": "inspection" },
|
||||
{ "id": "service", "name_it": "Tagliando", "days": 3, "costShare": 0.03, "spareParts": 1, "effect": "service" },
|
||||
{ "id": "overhaul", "name_it": "Revisione generale", "days": 20, "costShare": 0.25, "spareParts": 5, "effect": "overhaul" },
|
||||
{ "id": "repair_minor", "name_it": "Riparazione dopo guasto lieve", "days": 2, "costShare": 0.05, "spareParts": 1, "effect": "repair", "restoreTo": 80 },
|
||||
{ "id": "repair_major", "name_it": "Riparazione dopo guasto grave", "days": 7, "costShare": 0.15, "spareParts": 3, "effect": "repair", "restoreTo": 90 },
|
||||
{ "id": "repair_catastrophic", "name_it": "Ricostruzione dopo deragliamento", "days": 30, "costShare": 0.40, "spareParts": 8, "effect": "replace" }
|
||||
],
|
||||
"inspection": { "brakesTo": 100, "othersPlus": 10, "hazardFactor": 0.5, "hazardDays": 30 },
|
||||
"service": { "plus": 40 },
|
||||
"overhaul": { "ageFactorReduction": 0.5 },
|
||||
"depots": {
|
||||
"stallsBySize": { "small": 2, "medium": 4, "large": 8 },
|
||||
"staffPerStall": 4,
|
||||
"slowdownAtHalfStaff": 2.0,
|
||||
"initialSpareParts": 10,
|
||||
"jobsWorkersPerStall": 6
|
||||
},
|
||||
"policies": [
|
||||
{ "id": "economy", "name_it": "Economica", "intervalFactor": 1.5, "effectFactor": 0.7, "costFactor": 0.6 },
|
||||
{ "id": "standard", "name_it": "Standard", "intervalFactor": 1.0, "effectFactor": 1.0, "costFactor": 1.0 },
|
||||
{ "id": "thorough", "name_it": "Accurata", "intervalFactor": 0.7, "effectFactor": 1.2, "costFactor": 1.6 }
|
||||
],
|
||||
"intervals": {
|
||||
"inspectionKm": 3000, "inspectionDays": 45,
|
||||
"serviceKm": 15000, "serviceDays": 180,
|
||||
"overhaulYears": 6
|
||||
},
|
||||
"planner": {
|
||||
"targetCondition": 40,
|
||||
"averageDays": 15,
|
||||
"marginDays": 5,
|
||||
"alertCondition": 40,
|
||||
"criticalCondition": 30
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"$schema": "schema/regions.schema.json",
|
||||
"version": 1,
|
||||
"concessions": { "unlockTier": 3, "basePrice": 200000000, "priceGrowth": 1.6, "maxRegions": 16 },
|
||||
"regions": [
|
||||
{ "id": "valdoria", "name_it": "Regione di Valdoria", "climate": "temperate", "terrainDifficulty": 1.0,
|
||||
"resources": { "coal": 1.0, "iron": 1.0, "stone": 1.0, "oil": 0.6 }, "hubs": [ "port", "border" ], "namePool": "padana" },
|
||||
{ "id": "alpi", "name_it": "Alte Valli", "climate": "alpine", "terrainDifficulty": 1.8,
|
||||
"resources": { "coal": 0.6, "iron": 1.6, "stone": 1.4, "oil": 0.0 }, "hubs": [ "border" ], "namePool": "alpina" },
|
||||
{ "id": "litorale", "name_it": "Litorale", "climate": "coastal", "terrainDifficulty": 0.7,
|
||||
"resources": { "coal": 0.3, "iron": 0.4, "stone": 0.8, "oil": 1.4 }, "hubs": [ "port" ], "namePool": "costiera" },
|
||||
{ "id": "meridione", "name_it": "Terre del Sole", "climate": "dry", "terrainDifficulty": 1.2,
|
||||
"resources": { "coal": 0.4, "iron": 0.8, "stone": 1.6, "oil": 1.0 }, "hubs": [ "port" ], "namePool": "meridionale" }
|
||||
],
|
||||
"namePools": [
|
||||
{ "id": "padana",
|
||||
"prefixes": [ "Borgo ", "Villa ", "San ", "Sant'", "Castel ", "Ponte ", "Porto ", "Rocca ", "Corte ", "" ],
|
||||
"roots": [ "Vald", "Mont", "Cer", "Ros", "Alb", "Fior", "Bel", "Lov", "Cas", "Ser", "Tor", "Pall", "Ard", "Ven", "Mar", "Lun", "Gav", "Brem", "Ost", "Coll" ],
|
||||
"suffixes": [ "oria", "alto", "esio", "ello", "ano", "enza", "ate", "ona", "ino", "ara", "ago", "edo", "ica", "ia" ],
|
||||
"saints": [ "Elia", "Ambrogio", "Giorgio", "Martino", "Anna", "Michele", "Ilario", "Agata" ] },
|
||||
{ "id": "alpina",
|
||||
"prefixes": [ "Pian ", "Val ", "Passo ", "Malga ", "" ],
|
||||
"roots": [ "Cort", "Bren", "Auron", "Sest", "Livin", "Chiav", "Bor", "Tirn", "Ponte", "Mezz" ],
|
||||
"suffixes": [ "ina", "egno", "ago", "olo", "ena", "ola", "io" ],
|
||||
"saints": [ "Bernardo", "Maurizio", "Vigilio" ] },
|
||||
{ "id": "costiera",
|
||||
"prefixes": [ "Marina di ", "Lido ", "Porto ", "Capo ", "" ],
|
||||
"roots": [ "Sal", "Ancor", "Fan", "Ortom", "Ves", "Rimin", "Senig", "Caor" ],
|
||||
"suffixes": [ "ona", "ese", "ara", "allia", "ino", "ole" ],
|
||||
"saints": [ "Nicola", "Benedetto", "Elpidio" ] },
|
||||
{ "id": "meridionale",
|
||||
"prefixes": [ "Torre ", "Monte ", "Casal ", "San ", "" ],
|
||||
"roots": [ "Mel", "Trap", "Agrig", "Lent", "Calt", "Pac", "Nis", "Gel", "Ragus" ],
|
||||
"suffixes": [ "fi", "ani", "ento", "ini", "anissetta", "ino", "emi", "a" ],
|
||||
"saints": [ "Vito", "Calogero", "Rosalia" ] }
|
||||
],
|
||||
"industryNameTemplates": [ "{type} {town}", "{type} di {town}", "{type} {feature}" ],
|
||||
"featureNames": [ "Bosco Alto", "Rocca Bruna", "Piana Verde", "Val Fonda", "Colle Rosso", "Prato Lungo", "Sasso Nero", "Fontana Fredda" ]
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "Concorrenti IA (ai.json)",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"planning": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"personalities": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9_]*$"
|
||||
},
|
||||
"name_it": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"roiThreshold": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"loanShareOfCredit": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"targetsPlayer": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"buysShares": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"maintenancePolicy": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"economy",
|
||||
"standard",
|
||||
"thorough"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name_it",
|
||||
"roiThreshold",
|
||||
"loanShareOfCredit",
|
||||
"targetsPlayer",
|
||||
"buysShares",
|
||||
"maintenancePolicy"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 3
|
||||
},
|
||||
"companyNames": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"minItems": 4,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"colors": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^#[0-9a-fA-F]{6}$"
|
||||
},
|
||||
"minItems": 1
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"version",
|
||||
"planning",
|
||||
"personalities",
|
||||
"companyNames",
|
||||
"colors"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,462 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "Bilanciamento (balance.json)",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"time": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tickMs": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"ticksPerDay": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"daysPerMonth": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"monthsPerYear": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"trainClockFactor": {
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
},
|
||||
"speeds": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 64
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"defaultStartYear": {
|
||||
"type": "integer",
|
||||
"minimum": 1800,
|
||||
"maximum": 2300
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"tickMs",
|
||||
"ticksPerDay",
|
||||
"daysPerMonth",
|
||||
"monthsPerYear",
|
||||
"trainClockFactor",
|
||||
"speeds",
|
||||
"defaultStartYear"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"map": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"cellSizeM": {
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
},
|
||||
"sizesKm": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"minimum": 8,
|
||||
"maximum": 1024
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"chunkCells": {
|
||||
"type": "integer",
|
||||
"minimum": 8,
|
||||
"maximum": 256
|
||||
},
|
||||
"maxElevationM": {
|
||||
"type": "number",
|
||||
"minimum": 100
|
||||
},
|
||||
"noise": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"relief": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"hydrology": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"cover": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"deposits": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"towns": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"industries": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"hubs": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"cellSizeM",
|
||||
"sizesKm",
|
||||
"chunkCells",
|
||||
"maxElevationM",
|
||||
"noise",
|
||||
"relief",
|
||||
"hydrology",
|
||||
"cover",
|
||||
"deposits",
|
||||
"towns",
|
||||
"industries",
|
||||
"hubs"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"market": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"k": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"alpha": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"windowDays": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"minPriceFactor": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"maxPriceFactor": {
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
},
|
||||
"ratioMin": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"ratioMax": {
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
},
|
||||
"world": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"historyDays": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"k",
|
||||
"alpha",
|
||||
"windowDays",
|
||||
"minPriceFactor",
|
||||
"maxPriceFactor",
|
||||
"ratioMin",
|
||||
"ratioMax",
|
||||
"world",
|
||||
"historyDays"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"localPrice": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"lambda": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"maxDeviation": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"epsilon": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"lambda",
|
||||
"maxDeviation",
|
||||
"epsilon"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"industry": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"growth": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"town": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"migration": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"employment": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"localTransport": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"hubs": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tariffs": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"finance": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"stockMarket": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"industryMaintenance": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"version",
|
||||
"time",
|
||||
"map",
|
||||
"market",
|
||||
"localPrice",
|
||||
"industry",
|
||||
"growth",
|
||||
"town",
|
||||
"migration",
|
||||
"employment",
|
||||
"localTransport",
|
||||
"hubs",
|
||||
"tariffs",
|
||||
"finance",
|
||||
"stockMarket",
|
||||
"industryMaintenance"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "Costruzione (construction.json)",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"profile": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"maxGradientByTraction": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"steam": {
|
||||
"type": "number",
|
||||
"minimum": 0.001,
|
||||
"maximum": 0.2
|
||||
},
|
||||
"diesel": {
|
||||
"type": "number",
|
||||
"minimum": 0.001,
|
||||
"maximum": 0.2
|
||||
},
|
||||
"electric": {
|
||||
"type": "number",
|
||||
"minimum": 0.001,
|
||||
"maximum": 0.2
|
||||
},
|
||||
"highspeed": {
|
||||
"type": "number",
|
||||
"minimum": 0.001,
|
||||
"maximum": 0.2
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"steam",
|
||||
"diesel",
|
||||
"electric",
|
||||
"highspeed"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"speedClasses": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"trackClass": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9_]*$"
|
||||
},
|
||||
"minRadiusM": {
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
},
|
||||
"costMultiplier": {
|
||||
"type": "number",
|
||||
"minimum": 0.1
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"trackClass",
|
||||
"minRadiusM",
|
||||
"costMultiplier"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"curveSpeedFactor": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 2
|
||||
},
|
||||
"costs": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"crews": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"rules": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"trackWear": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"structures": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"physics": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"version",
|
||||
"profile",
|
||||
"maxGradientByTraction",
|
||||
"speedClasses",
|
||||
"curveSpeedFactor",
|
||||
"costs",
|
||||
"crews",
|
||||
"rules",
|
||||
"trackWear",
|
||||
"structures",
|
||||
"physics"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "Contratti e grandi opere (contracts.json)",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"generation": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"templates": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9_]*$"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"connect",
|
||||
"deliver",
|
||||
"greatWork",
|
||||
"service"
|
||||
]
|
||||
},
|
||||
"name_it": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"text_it": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"durationYears": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"minItems": 2,
|
||||
"maxItems": 2
|
||||
},
|
||||
"maxMinutes": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"minItems": 2,
|
||||
"maxItems": 2
|
||||
},
|
||||
"quantity": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"minItems": 2,
|
||||
"maxItems": 2
|
||||
},
|
||||
"lengthKm": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
"minItems": 2,
|
||||
"maxItems": 2
|
||||
},
|
||||
"reward": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"prestige": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"penalty": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"minYear": {
|
||||
"type": "integer",
|
||||
"minimum": 1800,
|
||||
"maximum": 2300
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"kind",
|
||||
"name_it",
|
||||
"text_it",
|
||||
"durationYears",
|
||||
"reward",
|
||||
"prestige",
|
||||
"penalty",
|
||||
"minYear"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"expositions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9_]*$"
|
||||
},
|
||||
"name_it": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"reward": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"prestige": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name_it",
|
||||
"reward",
|
||||
"prestige"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"version",
|
||||
"generation",
|
||||
"templates",
|
||||
"expositions"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
{
|
||||
"$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
|
||||
}
|
||||
@@ -0,0 +1,233 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "Ere (eras.json)",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"eras": {
|
||||
"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
|
||||
},
|
||||
"from": {
|
||||
"type": "integer",
|
||||
"minimum": 1800,
|
||||
"maximum": 2300
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name_it",
|
||||
"name_en",
|
||||
"from"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 4
|
||||
},
|
||||
"tractions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"steam",
|
||||
"diesel",
|
||||
"electric",
|
||||
"highspeed"
|
||||
]
|
||||
},
|
||||
"name_it": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"from": {
|
||||
"type": "integer",
|
||||
"minimum": 1800,
|
||||
"maximum": 2300
|
||||
},
|
||||
"needsElectrification": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name_it",
|
||||
"from",
|
||||
"needsElectrification"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"bridgeTypes": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9_]*$"
|
||||
},
|
||||
"name_it": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"from": {
|
||||
"type": "integer",
|
||||
"minimum": 1800,
|
||||
"maximum": 2300
|
||||
},
|
||||
"maxSpanM": {
|
||||
"type": "number",
|
||||
"minimum": 1
|
||||
},
|
||||
"costMultiplier": {
|
||||
"type": "number",
|
||||
"minimum": 0.1
|
||||
},
|
||||
"lifeYears": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name_it",
|
||||
"from",
|
||||
"maxSpanM",
|
||||
"costMultiplier",
|
||||
"lifeYears"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"tunnelLimits": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"from": {
|
||||
"type": "integer",
|
||||
"minimum": 1800,
|
||||
"maximum": 2300
|
||||
},
|
||||
"maxLengthM": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"from",
|
||||
"maxLengthM"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"trackClasses": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9_]*$"
|
||||
},
|
||||
"name_it": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"speedKmh": {
|
||||
"type": "number",
|
||||
"minimum": 10,
|
||||
"maximum": 600
|
||||
},
|
||||
"from": {
|
||||
"type": "integer",
|
||||
"minimum": 1800,
|
||||
"maximum": 2300
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name_it",
|
||||
"speedKmh",
|
||||
"from"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"signals": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9_]*$"
|
||||
},
|
||||
"name_it": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"from": {
|
||||
"type": "integer",
|
||||
"minimum": 1800,
|
||||
"maximum": 2300
|
||||
},
|
||||
"price": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name_it",
|
||||
"from",
|
||||
"price"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"electrificationFrom": {
|
||||
"type": "integer",
|
||||
"minimum": 1800,
|
||||
"maximum": 2300
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"version",
|
||||
"eras",
|
||||
"tractions",
|
||||
"bridgeTypes",
|
||||
"tunnelLimits",
|
||||
"trackClasses",
|
||||
"signals",
|
||||
"electrificationFrom"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "Beni (goods.json)",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"goods": {
|
||||
"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
|
||||
},
|
||||
"category": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"bulk",
|
||||
"general",
|
||||
"liquid",
|
||||
"perishable"
|
||||
]
|
||||
},
|
||||
"unit": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"wagon": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"hopper",
|
||||
"flat",
|
||||
"tank",
|
||||
"box"
|
||||
]
|
||||
},
|
||||
"basePrice": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"elasticity": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 3
|
||||
},
|
||||
"decayDaysAtStation": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"era": {
|
||||
"type": "integer",
|
||||
"minimum": 1800,
|
||||
"maximum": 2300
|
||||
},
|
||||
"town": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"category": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"food",
|
||||
"goods",
|
||||
"fuel",
|
||||
"construction"
|
||||
]
|
||||
},
|
||||
"demandPerThousand": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 10
|
||||
},
|
||||
"untilYear": {
|
||||
"type": "integer",
|
||||
"minimum": 1800,
|
||||
"maximum": 2300
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"category",
|
||||
"demandPerThousand"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"service": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name_it",
|
||||
"name_en",
|
||||
"category",
|
||||
"unit",
|
||||
"wagon",
|
||||
"basePrice",
|
||||
"elasticity",
|
||||
"decayDaysAtStation",
|
||||
"era"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 12
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"version",
|
||||
"goods"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,241 @@
|
||||
{
|
||||
"$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
|
||||
}
|
||||
@@ -0,0 +1,321 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "Manutenzione dei treni (maintenance.json)",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"components": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"locomotive": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9_]*$"
|
||||
},
|
||||
"name_it": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"failureWeight": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"wearPer100Km": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 10
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name_it",
|
||||
"failureWeight",
|
||||
"wearPer100Km"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"car": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9_]*$"
|
||||
},
|
||||
"name_it": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"failureWeight": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 1
|
||||
},
|
||||
"wearPer100Km": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 10
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name_it",
|
||||
"failureWeight",
|
||||
"wearPer100Km"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"locomotive",
|
||||
"car"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"wear": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"failure": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"effects": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"interventions": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9_]*$"
|
||||
},
|
||||
"name_it": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"days": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"costShare": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 2
|
||||
},
|
||||
"spareParts": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"effect": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"inspection",
|
||||
"service",
|
||||
"overhaul",
|
||||
"repair",
|
||||
"replace"
|
||||
]
|
||||
},
|
||||
"restoreTo": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 100
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name_it",
|
||||
"days",
|
||||
"costShare",
|
||||
"spareParts",
|
||||
"effect"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 6
|
||||
},
|
||||
"inspection": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"service": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"overhaul": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"depots": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"policies": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"economy",
|
||||
"standard",
|
||||
"thorough"
|
||||
]
|
||||
},
|
||||
"name_it": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"intervalFactor": {
|
||||
"type": "number",
|
||||
"minimum": 0.1
|
||||
},
|
||||
"effectFactor": {
|
||||
"type": "number",
|
||||
"minimum": 0.1
|
||||
},
|
||||
"costFactor": {
|
||||
"type": "number",
|
||||
"minimum": 0.1
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"name_it",
|
||||
"intervalFactor",
|
||||
"effectFactor",
|
||||
"costFactor"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 3,
|
||||
"maxItems": 3
|
||||
},
|
||||
"intervals": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"planner": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": [
|
||||
"number",
|
||||
"integer",
|
||||
"boolean",
|
||||
"array",
|
||||
"object",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"version",
|
||||
"components",
|
||||
"wear",
|
||||
"failure",
|
||||
"effects",
|
||||
"interventions",
|
||||
"inspection",
|
||||
"service",
|
||||
"overhaul",
|
||||
"depots",
|
||||
"policies",
|
||||
"intervals",
|
||||
"planner"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,205 @@
|
||||
{
|
||||
"$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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "Veicoli (vehicles.json)",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"vehicles": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9_]*$"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"locomotive",
|
||||
"wagon",
|
||||
"coach"
|
||||
]
|
||||
},
|
||||
"name_it": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"name_en": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"eraFrom": {
|
||||
"type": "integer",
|
||||
"minimum": 1800,
|
||||
"maximum": 2300
|
||||
},
|
||||
"eraTo": {
|
||||
"type": "integer",
|
||||
"minimum": 1800,
|
||||
"maximum": 2300
|
||||
},
|
||||
"powerKw": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
"tractiveEffortKn": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
"maxSpeedKmh": {
|
||||
"type": "number",
|
||||
"minimum": 1,
|
||||
"maximum": 600
|
||||
},
|
||||
"massT": {
|
||||
"type": "number",
|
||||
"minimum": 0.1
|
||||
},
|
||||
"lengthM": {
|
||||
"type": "number",
|
||||
"minimum": 1,
|
||||
"maximum": 60
|
||||
},
|
||||
"price": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"runningCostPerYear": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"lifeYears": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 200
|
||||
},
|
||||
"traction": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"steam",
|
||||
"diesel",
|
||||
"electric",
|
||||
"highspeed"
|
||||
]
|
||||
},
|
||||
"components": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 5
|
||||
}
|
||||
},
|
||||
"capacity": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"wagonType": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"hopper",
|
||||
"flat",
|
||||
"tank",
|
||||
"box"
|
||||
]
|
||||
},
|
||||
"goods": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9_]*$"
|
||||
},
|
||||
"minItems": 1,
|
||||
"uniqueItems": true
|
||||
},
|
||||
"paxCapacity": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"class": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"worker",
|
||||
"staff"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"kind",
|
||||
"name_it",
|
||||
"name_en",
|
||||
"eraFrom",
|
||||
"maxSpeedKmh",
|
||||
"massT",
|
||||
"lengthM",
|
||||
"price",
|
||||
"runningCostPerYear",
|
||||
"lifeYears",
|
||||
"components"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 8
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"version",
|
||||
"vehicles"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"$schema": "schema/tiers.schema.json",
|
||||
"version": 1,
|
||||
"ratingScale": [ "AAA", "AA", "A", "BBB", "BB", "B", "CCC", "CC", "C", "D" ],
|
||||
"tiers": [
|
||||
{ "level": 1, "name_it": "Compagnia locale", "name_en": "Local company",
|
||||
"requirements": { "netWorth": 0, "connectedTownsOver": { "count": 0, "population": 0 }, "creditRating": "D" },
|
||||
"unlocks": { "maxLoanFactor": 1.0, "crews": 2, "trading": false, "buyIndustry": false, "ipo": false, "hostileTakeover": false, "concessions": false } },
|
||||
{ "level": 2, "name_it": "Compagnia regionale", "name_en": "Regional company",
|
||||
"requirements": { "netWorth": 100000000, "connectedTownsOver": { "count": 3, "population": 1000 }, "creditRating": "BB" },
|
||||
"unlocks": { "maxLoanFactor": 2.0, "crews": 4, "trading": true, "buyIndustry": false, "ipo": false, "hostileTakeover": false, "concessions": false } },
|
||||
{ "level": 3, "name_it": "Compagnia nazionale", "name_en": "National company",
|
||||
"requirements": { "netWorth": 500000000, "connectedTownsOver": { "count": 8, "population": 2000 }, "creditRating": "BBB" },
|
||||
"unlocks": { "maxLoanFactor": 4.0, "crews": 8, "trading": true, "buyIndustry": true, "ipo": false, "hostileTakeover": false, "concessions": true } },
|
||||
{ "level": 4, "name_it": "Grande compagnia", "name_en": "Major company",
|
||||
"requirements": { "netWorth": 2000000000, "connectedTownsOver": { "count": 15, "population": 3000 }, "creditRating": "A" },
|
||||
"unlocks": { "maxLoanFactor": 8.0, "crews": 12, "trading": true, "buyIndustry": true, "ipo": true, "hostileTakeover": false, "concessions": true } },
|
||||
{ "level": 5, "name_it": "Impero ferroviario", "name_en": "Railway empire",
|
||||
"requirements": { "netWorth": 8000000000, "connectedTownsOver": { "count": 25, "population": 5000 }, "creditRating": "AA" },
|
||||
"unlocks": { "maxLoanFactor": 16.0, "crews": 20, "trading": true, "buyIndustry": true, "ipo": true, "hostileTakeover": true, "concessions": true } }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"$schema": "schema/vehicles.schema.json",
|
||||
"version": 1,
|
||||
"vehicles": [
|
||||
{ "id": "loco_steam_1850", "kind": "locomotive", "name_it": "Ardita 2-6-0", "name_en": "Ardita 2-6-0",
|
||||
"eraFrom": 1850, "eraTo": 1905, "powerKw": 300, "tractiveEffortKn": 45, "maxSpeedKmh": 60, "massT": 38, "lengthM": 16,
|
||||
"price": 1800000, "runningCostPerYear": 240000, "lifeYears": 25, "traction": "steam",
|
||||
"components": { "engine": 1.0, "wheelsets": 0.8, "brakes": 1.0, "electrics": 0.6 } },
|
||||
{ "id": "loco_steam_1878", "kind": "locomotive", "name_it": "Vittoria 2-8-0", "name_en": "Vittoria 2-8-0",
|
||||
"eraFrom": 1878, "eraTo": 1935, "powerKw": 650, "tractiveEffortKn": 110, "maxSpeedKmh": 70, "massT": 62, "lengthM": 18,
|
||||
"price": 3200000, "runningCostPerYear": 380000, "lifeYears": 30, "traction": "steam",
|
||||
"components": { "engine": 1.0, "wheelsets": 0.9, "brakes": 1.0, "electrics": 0.6 } },
|
||||
{ "id": "loco_steam_1902", "kind": "locomotive", "name_it": "Freccia 4-6-2", "name_en": "Freccia 4-6-2",
|
||||
"eraFrom": 1902, "eraTo": 1945, "powerKw": 1150, "tractiveEffortKn": 95, "maxSpeedKmh": 110, "massT": 88, "lengthM": 21,
|
||||
"price": 5600000, "runningCostPerYear": 560000, "lifeYears": 30, "traction": "steam",
|
||||
"components": { "engine": 1.1, "wheelsets": 1.0, "brakes": 1.0, "electrics": 0.6 } },
|
||||
{ "id": "loco_diesel_1925", "kind": "locomotive", "name_it": "Aquila D1", "name_en": "Aquila D1",
|
||||
"eraFrom": 1925, "eraTo": 1975, "powerKw": 950, "tractiveEffortKn": 180, "maxSpeedKmh": 100, "massT": 72, "lengthM": 17,
|
||||
"price": 7500000, "runningCostPerYear": 420000, "lifeYears": 30, "traction": "diesel",
|
||||
"components": { "engine": 0.9, "wheelsets": 0.8, "brakes": 0.9, "electrics": 0.9 } },
|
||||
{ "id": "loco_electric_1950", "kind": "locomotive", "name_it": "Saetta E50", "name_en": "Saetta E50",
|
||||
"eraFrom": 1950, "eraTo": 2010, "powerKw": 3200, "tractiveEffortKn": 260, "maxSpeedKmh": 160, "massT": 84, "lengthM": 18,
|
||||
"price": 14000000, "runningCostPerYear": 520000, "lifeYears": 35, "traction": "electric",
|
||||
"components": { "engine": 0.7, "wheelsets": 0.9, "brakes": 0.9, "electrics": 1.2 } },
|
||||
{ "id": "loco_highspeed_1990", "kind": "locomotive", "name_it": "Lampo AV", "name_en": "Lampo HS",
|
||||
"eraFrom": 1990, "eraTo": 2045, "powerKw": 8800, "tractiveEffortKn": 300, "maxSpeedKmh": 250, "massT": 68, "lengthM": 22,
|
||||
"price": 42000000, "runningCostPerYear": 1400000, "lifeYears": 30, "traction": "highspeed",
|
||||
"components": { "engine": 0.8, "wheelsets": 1.2, "brakes": 1.1, "electrics": 1.3 } },
|
||||
{ "id": "wagon_hopper", "kind": "wagon", "name_it": "Carro tramoggia", "name_en": "Hopper wagon",
|
||||
"eraFrom": 1850, "maxSpeedKmh": 90, "massT": 9, "lengthM": 11, "price": 120000, "runningCostPerYear": 12000, "lifeYears": 40,
|
||||
"capacity": 20, "wagonType": "hopper", "goods": [ "coal", "iron_ore", "stone", "grain" ],
|
||||
"components": { "axles": 1.0, "brakes": 1.0, "body": 0.8 } },
|
||||
{ "id": "wagon_flat", "kind": "wagon", "name_it": "Carro pianale", "name_en": "Flat wagon",
|
||||
"eraFrom": 1850, "maxSpeedKmh": 90, "massT": 8, "lengthM": 11, "price": 100000, "runningCostPerYear": 10000, "lifeYears": 40,
|
||||
"capacity": 20, "wagonType": "flat", "goods": [ "logs", "lumber", "steel", "building_materials", "machinery" ],
|
||||
"components": { "axles": 1.0, "brakes": 1.0, "body": 0.6 } },
|
||||
{ "id": "wagon_tank", "kind": "wagon", "name_it": "Carro cisterna", "name_en": "Tank wagon",
|
||||
"eraFrom": 1860, "maxSpeedKmh": 90, "massT": 10, "lengthM": 11, "price": 160000, "runningCostPerYear": 14000, "lifeYears": 40,
|
||||
"capacity": 18, "wagonType": "tank", "goods": [ "crude_oil", "fuel" ],
|
||||
"components": { "axles": 1.0, "brakes": 1.0, "body": 1.0 } },
|
||||
{ "id": "wagon_box", "kind": "wagon", "name_it": "Carro coperto", "name_en": "Box wagon",
|
||||
"eraFrom": 1850, "maxSpeedKmh": 90, "massT": 9, "lengthM": 11, "price": 130000, "runningCostPerYear": 12000, "lifeYears": 40,
|
||||
"capacity": 16, "wagonType": "box", "goods": [ "food", "goods", "tools", "spare_parts", "livestock", "grain" ],
|
||||
"components": { "axles": 1.0, "brakes": 1.0, "body": 1.0 } },
|
||||
{ "id": "coach_worker", "kind": "coach", "name_it": "Carrozza operai", "name_en": "Workers' coach",
|
||||
"eraFrom": 1850, "maxSpeedKmh": 100, "massT": 18, "lengthM": 14, "price": 220000, "runningCostPerYear": 20000, "lifeYears": 40,
|
||||
"paxCapacity": 60, "class": "worker",
|
||||
"components": { "axles": 1.0, "brakes": 1.0, "body": 1.0 } },
|
||||
{ "id": "coach_staff", "kind": "coach", "name_it": "Carrozza tecnici", "name_en": "Staff coach",
|
||||
"eraFrom": 1850, "maxSpeedKmh": 110, "massT": 20, "lengthM": 14, "price": 320000, "runningCostPerYear": 26000, "lifeYears": 40,
|
||||
"paxCapacity": 32, "class": "staff",
|
||||
"components": { "axles": 1.0, "brakes": 1.0, "body": 1.2 } },
|
||||
{ "id": "coach_modern", "kind": "coach", "name_it": "Carrozza moderna", "name_en": "Modern coach",
|
||||
"eraFrom": 1950, "maxSpeedKmh": 250, "massT": 40, "lengthM": 26, "price": 1600000, "runningCostPerYear": 60000, "lifeYears": 35,
|
||||
"paxCapacity": 80, "class": "worker",
|
||||
"components": { "axles": 1.0, "brakes": 1.0, "body": 1.0 } }
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user