F6: ere e obsolescenza dei veicoli
La tecnologia avanzava solo come filtro d'acquisto: nessuna notizia del cambio d'era, nessun modello «superato», due formule diverse per valore di libro e rivendita e nessun modo di sostituire i veicoli di un treno. Ora rinnovare la flotta è una scelta con costi e benefici visibili. - vehicles.json: successore per modello (validato: stessa categoria, introdotto dopo) e parametri di obsolescenza; Obsolescence, senza stato, ricava produzione, superato, successore consigliato, curva del valore (gradino all'arrivo del successore, poi ammortamento più rapido) e fattore di manutenzione: una sola fonte per patrimonio, SellVehicle, rinnovo e quadri. - Rinnovo come intervento «renewal» di maintenance.json prenotato con ScheduleService: in officina i veicoli superati si vendono e il successore prende il loro posto. Nessun comando nuovo. - EraSystem: il 1° gennaio la notizia dell'era e delle novità dell'anno lette dai dati, annotata nella Cronaca, una volta sola anche attraverso un salvataggio. - Nessuno stato nuovo, quindi il salvataggio resta alla versione 7. - IA: modelli dei progetti aggiornati quando escono di produzione e rinnovo mensile con una regola in ai.json. - Protocollo: DetailKind.Fleet (10) e FleetReport (136); client: catalogo senza i fuori produzione e con i superati segnati, rivendita, Vendi e Rinnova nel pannello Treni, sezione «Rinnovo della flotta» in Officine. - ADR 0020, STATE, ARCHITECTURE e PROTOCOL aggiornati; ErasTests (11). Accettazione F4 e F5 invariate. Refs #41. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8b3a9bdb9c
commit
f7c286bf1d
39 files changed
+1648
-53
No files matched your search
@@ -57,6 +57,12 @@
|
||||
"industryMaxCashShare": 0.25,
|
||||
"industryMinMargin": 0.1
|
||||
},
|
||||
"renewal": {
|
||||
"minSupersededYears": 3,
|
||||
"minAgeShareOfLife": 0.5,
|
||||
"cashReserveMultiple": 2.0,
|
||||
"maxTrainsPerMonth": 1
|
||||
},
|
||||
"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" },
|
||||
|
||||
@@ -55,7 +55,8 @@
|
||||
{ "id": "overhaul", "name_it": "Revisione generale", "days": 20, "costShare": 0.12, "spareParts": 5, "effect": "overhaul" },
|
||||
{ "id": "repair_minor", "name_it": "Riparazione dopo guasto lieve", "days": 2, "costShare": 0.03, "spareParts": 1, "effect": "repair", "restoreTo": 80 },
|
||||
{ "id": "repair_major", "name_it": "Riparazione dopo guasto grave", "days": 7, "costShare": 0.08, "spareParts": 3, "effect": "repair", "restoreTo": 90 },
|
||||
{ "id": "repair_catastrophic", "name_it": "Ricostruzione dopo deragliamento", "days": 30, "costShare": 0.3, "spareParts": 8, "effect": "replace" }
|
||||
{ "id": "repair_catastrophic", "name_it": "Ricostruzione dopo deragliamento", "days": 30, "costShare": 0.3, "spareParts": 8, "effect": "replace" },
|
||||
{ "id": "renewal", "name_it": "Rinnovo dei veicoli superati", "days": 4, "costShare": 0.005, "spareParts": 0, "effect": "renew" }
|
||||
],
|
||||
"inspection": { "brakesTo": 100, "othersPlus": 10, "hazardFactor": 0.5, "hazardDays": 30 },
|
||||
"service": { "plus": 40 },
|
||||
|
||||
@@ -91,6 +91,34 @@
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"renewal": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"minSupersededYears": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
"minAgeShareOfLife": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
"cashReserveMultiple": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
"maxTrainsPerMonth": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"minSupersededYears",
|
||||
"minAgeShareOfLife",
|
||||
"cashReserveMultiple",
|
||||
"maxTrainsPerMonth"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"market": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
@@ -108,7 +136,8 @@
|
||||
"personalities",
|
||||
"companyNames",
|
||||
"colors",
|
||||
"market"
|
||||
"market",
|
||||
"renewal"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -160,7 +160,8 @@
|
||||
"service",
|
||||
"overhaul",
|
||||
"repair",
|
||||
"replace"
|
||||
"replace",
|
||||
"renew"
|
||||
]
|
||||
},
|
||||
"restoreTo": {
|
||||
|
||||
@@ -10,6 +10,32 @@
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"obsolescence": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"immediateValueLoss": {
|
||||
"type": "number",
|
||||
"minimum": 0,
|
||||
"maximum": 0.9
|
||||
},
|
||||
"depreciationSpeed": {
|
||||
"type": "number",
|
||||
"minimum": 1,
|
||||
"maximum": 10
|
||||
},
|
||||
"maintenanceCostFactor": {
|
||||
"type": "number",
|
||||
"minimum": 1,
|
||||
"maximum": 10
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"immediateValueLoss",
|
||||
"depreciationSpeed",
|
||||
"maintenanceCostFactor"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"vehicles": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -45,6 +71,10 @@
|
||||
"minimum": 1800,
|
||||
"maximum": 2300
|
||||
},
|
||||
"successor": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9_]*$"
|
||||
},
|
||||
"powerKw": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
@@ -152,6 +182,7 @@
|
||||
},
|
||||
"required": [
|
||||
"version",
|
||||
"obsolescence",
|
||||
"vehicles"
|
||||
],
|
||||
"additionalProperties": false
|
||||
|
||||
+6
-5
@@ -1,17 +1,18 @@
|
||||
{
|
||||
"$schema": "schema/vehicles.schema.json",
|
||||
"version": 1,
|
||||
"obsolescence": { "immediateValueLoss": 0.15, "depreciationSpeed": 2.0, "maintenanceCostFactor": 1.5 },
|
||||
"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": 70, "maxSpeedKmh": 60, "massT": 38, "lengthM": 16,
|
||||
"eraFrom": 1850, "eraTo": 1905, "successor": "loco_steam_1878", "powerKw": 300, "tractiveEffortKn": 70, "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,
|
||||
"eraFrom": 1878, "eraTo": 1935, "successor": "loco_steam_1902", "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,
|
||||
"eraFrom": 1902, "eraTo": 1945, "successor": "loco_diesel_1925", "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",
|
||||
@@ -19,7 +20,7 @@
|
||||
"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,
|
||||
"eraFrom": 1950, "eraTo": 2010, "successor": "loco_highspeed_1990", "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",
|
||||
@@ -43,7 +44,7 @@
|
||||
"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,
|
||||
"eraFrom": 1850, "successor": "coach_modern", "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",
|
||||
|
||||
Reference in new issue
Block a user