BGS saves what the engine's `replay(data, { to })` returns: undo against bots,
admin and batch replays. It replayed the log for display, without drawing from
the decks or advancing the PRNG, so a restored game kept its initial decks
(cards duplicated between hands and decks), rewound the random counter and
lost the players' auto-pass and production settings.
Given the seed, `replay` now re-applies the logged moves from `initGame`,
replays automatic choices as recorded and checks every regenerated entry
against the saved log, refusing rather than rewriting a history it cannot
reproduce (e.g. after a drop). Current names, settings and drops are kept;
secret-stripped logs still use the display replay. Engine 0.10.26.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
45 lines
986 B
JSON
45 lines
986 B
JSON
{
|
|
"name": "outpost-engine",
|
|
"version": "0.10.26",
|
|
"description": "Unofficial Outpost rules engine for boardgamers.space",
|
|
"license": "AGPL-3.0",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./wrapper": {
|
|
"types": "./dist/wrapper.d.ts",
|
|
"default": "./dist/wrapper.js"
|
|
},
|
|
"./wrapper.js": {
|
|
"types": "./dist/wrapper.d.ts",
|
|
"default": "./dist/wrapper.js"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"prepack": "pnpm build",
|
|
"prepublishOnly": "pnpm build",
|
|
"tsc": "tsc --noEmit",
|
|
"test": "tsc -p tsconfig.test.json && node --test \"dist-test/src/*.spec.js\""
|
|
},
|
|
"dependencies": {
|
|
"seedrandom": "3.0.5"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "24.10.1",
|
|
"@types/seedrandom": "3.0.8",
|
|
"typescript": "5.9.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=24"
|
|
}
|
|
}
|