Web frontend and supporting services for lance.blue
headquarters plan unit-rules.md
4.5 kB


id: unit-rules title: A force's battle value is ours to compute, and the same on both sides status: blocked repos: [helm, headquarters] dependsOn: [unit-library] exitCriterion: > A force's battle value is computed the same way in the browser and on the server, agreeing with MegaMek on every unit in the library except where a deviation is registered as their bug — including the crews' skill, which changes it. #

unit-rules #

Battle value is computed when MegaMek loads a design, and helm borrows it from bridge/. That is enough while a force is a list of stock units and nothing else, and stops being enough the moment anything about a unit changes.

What this epic is not, any more #

It was written assuming a force builder where players design units, which needed the whole construction rules layer. That is not what is being built: players pick from the library, then vary pilots, models and ammunition; fully custom designs are a much later question, and porting MegaMekLab is declined.

So construction validation is out of scope here until custom design is on the table. What is left is smaller and sharper, and most of it is arithmetic over figures helm already has.

Deferred, deliberately #

Where the campaign layer picks this up, and an open question #

Salvage, repair, refit and damage carried between matches came up as wanted. Some of that is already provided for: a .mul records armour points, internal structure, destroyed locations and remaining shots per unit, so the interchange format already carries a damaged unit and campaign does not need a new one.

The open question is where the line sits. campaign's exit criterion is "a pilot carries damage and experience from one match into the next", and declined puts MekHQ and StratCon outside the project on the grounds that campaign is "what a pilot carries out of a match, not a company's books". Salvage and refit read like the company's books. Either the line moves or the feature is smaller than it sounds, and that is worth settling before either epic plans around it — refits in particular are what would drag full construction validation back into scope.

Done #