101 lines
7.7 KiB
Markdown
101 lines
7.7 KiB
Markdown
# Outpost achievements
|
|
|
|
Revision 2 exposes 19 game-local achievements through the optional `achievementDefinitions()`
|
|
and `achievements(data)` exports of `dist/wrapper.js`. Types come from the published,
|
|
exact-pinned `@boardgamers/protocol@0.11.0` `/engine` entry point (type-only imports).
|
|
No viewer changes or browser claims are involved. Icons are omitted so the platform can
|
|
use generic artwork; there are no third-party assets or viewer-bundle URLs.
|
|
|
|
## Catalog
|
|
|
|
| ID | Name | Final-state condition |
|
|
| ------------------------ | ----------------------- | --------------------------------------------------------------------- |
|
|
| `colony-victor` | Colony Victor | Sole first place |
|
|
| `head-to-head` | Head to Head | Sole first place with two original seats |
|
|
| `crowded-frontier` | Crowded Frontier | Sole first place with at least five original seats |
|
|
| `kicker-victor` | Kicker Victor | Sole first place with `options.kicker === true` |
|
|
| `sealed-bid-victor` | Sealed Bid Victor | Sole first place with `options.fastBid === true` |
|
|
| `seventy-five-points` | Victory Point Milestone | At least 75 VP, the normal victory target |
|
|
| `water-megaplex` | Water Megaplex | At least four manned water factories |
|
|
| `titanium-megaplex` | Titanium Megaplex | At least four manned titanium factories |
|
|
| `chemical-megaplex` | Chemical Megaplex | At least four manned new chemicals factories |
|
|
| `diversified-industry` | Diversified Industry | At least one manned factory of each of the five types |
|
|
| `research-campus` | Research Campus | Scientists, Laboratory, and a manned research factory |
|
|
| `automated-colony` | Automated Colony | Robots upgrade and at least one robot |
|
|
| `established-outpost` | Established Outpost | Outpost upgrade |
|
|
| `orbital-network` | Orbital Network | Space Station, Planetary Cruiser, and Moon Base |
|
|
| `lunar-colony` | Lunar Colony | Moon Base |
|
|
| `self-sustaining-colony` | Self-Sustaining Colony | Ecoplants and Nodule |
|
|
| `biosphere-colony` | Biosphere Colony | Own a Biosphere Kicker card |
|
|
| `twenty-workforce` | Twenty Strong | Own at least 20 colonists and robots combined, including idle workers |
|
|
| `trading-network` | Trading Network | Own Wily Trader and Merchant House with Kicker enabled |
|
|
|
|
Only the first five require victory. Factory thresholds of four correspond to the
|
|
actual Mega production rule; they do not claim a Mega card was taken. All ownership and
|
|
operation conditions describe the final position, not historical purchases or production.
|
|
The 75-VP check uses engine scoring, including Kicker VP and only manned factory VP.
|
|
IDs must never be repurposed; definition changes require a manifest revision bump.
|
|
|
|
Revision 2 adds Biosphere ownership, total-owned workforce, and Trading Network without
|
|
changing the existing 16 definitions, outcomes, or eligibility. Workforce is `population + robots`, not manned
|
|
factory count or the operating-robot limit; idle and excess owned robots count. Twenty is
|
|
legally attainable: base population support 5 plus one Outpost's +5 supports 10 colonists,
|
|
and one Robots upgrade permits 10 operating robots. Robots can also be legally bought in
|
|
advance beyond their operating limit. Tests reach 20 through an actual paid robot purchase
|
|
in a game played from initialization to completion; a separate completed Kicker game buys
|
|
Biosphere through its auction. Boundary tests cover totals 19, 20, and 21 with mixed workers.
|
|
Biosphere is checked from `kickers.biosphere`, not merely the expansion option.
|
|
|
|
`trading-network` requires `options.kicker === true` and final ownership of both Wily Trader
|
|
(`wilyTrader`) and Merchant House (`merchantHouse`). They are the two exchange Kicker cards,
|
|
covering ore/water/titanium and research/microbiotics/new chemicals respectively. No other
|
|
cards or successful exchanges are required. Tests cover each missing card, disabled Kicker,
|
|
a losing owner's award, and both cards' legal auction acquisition in a completed game.
|
|
|
|
## Authority and eligibility
|
|
|
|
The hook accepts the server's JSON-serializable engine state, not a JSON string or a
|
|
client report. It is deterministic and does not mutate that state. It returns nothing
|
|
unless `ended` is true, phase is `ended`, round exceeds one (the wrapper's cancellation
|
|
boundary), and at least two seats exist. Dropped seats are omitted, including their feats.
|
|
Original seat count includes dropped and bot seats; it is not a claim about human opponents.
|
|
|
|
Outcomes use the existing final rankings: sole rank 1 is `win`, shared rank 1 is `draw`,
|
|
and other ranks are `loss`. Spending breaks purchase-order ties only, never final ties.
|
|
The remaining player can win after other seats drop, as in existing rankings. Engine
|
|
round-limit or stalled-economy completion uses the same rankings rather than inventing
|
|
new outcome rules. There is no supported solo game.
|
|
|
|
**BGS maps seats to accounts during achievement capture.** Capture rejects unfinished or
|
|
cancelled games, claimed-win games, games with `soloEditedAt`, and games missing the required
|
|
provenance or achievement hooks. Bot, dropped, quit, null, and missing-account seats are
|
|
skipped. There is no general seed, rewind, practice, or analysis exclusion.
|
|
|
|
The local engine enforces only the completion, round, seat-count, and dropped-seat checks
|
|
listed above. Its state has no account or bot identity; calling `moveAI` in a test does not
|
|
turn a seat into a platform bot. Neither a seed nor a final log entry is treated as an
|
|
authentication credential.
|
|
|
|
## Verification and release gate
|
|
|
|
`src/achievements.spec.ts` exercises games actually played to completion through the
|
|
engine (base two-player and five-player Kicker/sealed-bid), JSON round trips, outcomes,
|
|
non-mutation, fresh manifests, cancellation, dropped seats, ties and per-feat boundaries.
|
|
Constructed final positions are boundary tests, not claims that their logs reproduce them.
|
|
Run the complete `pnpm check` before committing or releasing.
|
|
|
|
Revision 1 was approved and released in engine 0.10.31; see
|
|
[its release receipt](RELEASE-0.10.31.md). Revision 2 was approved and released in engine
|
|
0.10.32; see [its release receipt](RELEASE-0.10.32.md). For subsequent releases:
|
|
|
|
1. Obtain independent coordinator review, including the platform's human/account and
|
|
authoritative-completion eligibility gates.
|
|
2. Integrate the then-current canonical release branch without disturbing local work,
|
|
choose an unused engine patch version and rerun `pnpm check`.
|
|
3. Follow `AGENTS.md` publishing: pack the engine, upload to existing game version doc 1,
|
|
and verify `engine.package.version`. This is engine-only; no viewer upload is needed.
|
|
4. Verify platform ingestion of manifest revision 2 and eligible completed-game awards.
|
|
5. Commit and push the released sources/version to the canonical release branch under
|
|
the repository's delivery workflow, and verify its remote head.
|
|
|
|
No BGS upload, activation, or release-branch push is authorized before that review.
|