Express lightpaths: regen cards for their channels, and dirty connectors dim them (#58)

A regen site added to a fiber that already carries expresses now charges a
regen card for every express channel in that glass, as it does for the
fiber's own channels. One helper, regenAddCost(), prices it for the action,
the fiber panel's button and the MCP dry-run quote, so the three agree.
Lighting an express over existing regen sites already paid its cards
(xpCost); only adding a site later was free for them.

A dirty connector on a fiber is in the glass, so it now dims the expresses
riding that fiber by the same factor (capOf multiplies xpG by xpGlassF over
the express's fibers), and the express's panel names the fiber. The other
link-degrading incidents (MTU mismatch, microbursts, a marginal optic's CRC
errors) belong to the fiber's own routers and optics, which an express
bypasses, as the optic-failure incident already treats them, so they leave
expresses alone. The incident marks the connector with loss.glass=true;
sanitize keeps the flag only when it is true, so an old save's loss loads
as router-side, as it behaved before. A fiber that only carries expresses
can now get the dirty connector too (never the router-side variants), like
the backhoe and amp-hut incidents already find it.
This commit is contained in:
jvanvik 2026-11-09 22:50:04 +01:00
parent 2dc8274f34
commit ae78e82ddb
17 changed files with 123 additions and 9 deletions

View file

@ -2068,6 +2068,7 @@
"express.dark_gone":"Eine der Glasfasern darunter gibt es nicht mehr.",
"express.dark_reach":"Keine ihrer Optiken schafft diese Strecke.",
"express.dark_system":"Auf {span} ist das Line System down.",
"express.dim":"{span} hat einen verschmutzten Stecker: Jede Welle in dieser Faser, auch dieser Express, läuft mit {p}, bis jemand ihn reinigt.",
"express.express_to":"Express nach …",
"express.eyebrow":"Express-Lightpath · {km} km",
"express.fiber_busy":{"one":"<b>Über diese Glasfaser läuft ein Express-Lightpath.</b><br>Bau ihn zuerst ab: Öffne ihn im Express-Abschnitt dieser Glasfaser.","other":"<b>Über diese Glasfaser laufen {n} Express-Lightpaths.</b><br>Bau sie zuerst ab: Öffne sie im Express-Abschnitt dieser Glasfaser."},

View file

@ -2066,6 +2066,7 @@
"express.dark_gone":"Una de las fibras por debajo ya no existe.",
"express.dark_reach":"Ninguna de sus ópticas llega tan lejos.",
"express.dark_system":"{span} tiene el sistema de línea caído.",
"express.dim":"{span} tiene un conector sucio: cada onda de esa fibra, también este exprés, va al {p} hasta que alguien lo limpie.",
"express.express_to":"Exprés a…",
"express.eyebrow":"Lightpath exprés · {km} km",
"express.fiber_busy":{"one":"<b>Un lightpath exprés va por esta fibra.</b><br>Desmóntalo primero: ábrelo desde la sección Exprés de esta fibra.","other":"<b>{n} lightpaths exprés van por esta fibra.</b><br>Desmóntalos primero: ábrelos desde la sección Exprés de esta fibra."},

View file

@ -2066,6 +2066,7 @@
"express.dark_gone":"Une des fibres en dessous n’existe plus.",
"express.dark_reach":"Aucune de ses optiques ne porte aussi loin.",
"express.dark_system":"{span} a son système de ligne en panne.",
"express.dim":"{span} a un connecteur sale : chaque onde de cette fibre, cet express aussi, tourne à {p} jusqu’à ce que quelqu’un le nettoie.",
"express.express_to":"Express vers…",
"express.eyebrow":"Lightpath express · {km} km",
"express.fiber_busy":{"one":"<b>Un lightpath express passe par cette fibre.</b><br>Démonte-le d’abord : ouvre-le depuis la section Express de cette fibre.","other":"<b>{n} lightpaths express passent par cette fibre.</b><br>Démonte-les d’abord : ouvre-les depuis la section Express de cette fibre."},

View file

@ -2066,6 +2066,7 @@
"express.dark_gone":"Una delle fibre sotto non c’è più.",
"express.dark_reach":"Nessuna delle sue ottiche arriva così lontano.",
"express.dark_system":"{span} ha il line system giù.",
"express.dim":"{span} ha un connettore sporco: ogni onda in quella fibra, anche questo express, va al {p} finché qualcuno non lo pulisce.",
"express.express_to":"Express verso…",
"express.eyebrow":"Lightpath express · {km} km",
"express.fiber_busy":{"one":"<b>Su questa fibra passa un lightpath express.</b><br>Smontalo prima: aprilo dalla sezione Express di questa fibra.","other":"<b>Su questa fibra passano {n} lightpath express.</b><br>Smontali prima: aprili dalla sezione Express di questa fibra."},

View file

@ -2066,6 +2066,7 @@
"express.dark_gone":"Uma das fibras por baixo não existe mais.",
"express.dark_reach":"Nenhuma das suas ópticas alcança essa distância.",
"express.dark_system":"{span} está com o line system fora do ar.",
"express.dim":"{span} tem um conector sujo: cada onda nessa fibra, este expresso também, roda a {p} até alguém limpá-lo.",
"express.express_to":"Expresso para…",
"express.eyebrow":"Lightpath expresso · {km} km",
"express.fiber_busy":{"one":"<b>Um lightpath expresso passa por esta fibra.</b><br>Desmonte-o primeiro: abra-o na seção Expresso desta fibra.","other":"<b>{n} lightpaths expressos passam por esta fibra.</b><br>Desmonte-os primeiro: abra-os na seção Expresso desta fibra."},