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:
parent
2dc8274f34
commit
ae78e82ddb
17 changed files with 123 additions and 9 deletions
|
|
@ -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."},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue