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
|
|
@ -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."},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue