Allow fresh Advanced native No-Field placement
Verify and publish checkpoint container / container (push) Canceled after 0s

This commit is contained in:
Quintine committed 2026-10-29 20:09:52 +11:00
1 parent 9ca68c9ff8
commit 26d45ecf25
13 files changed
+201 -21

No files matched your search

+9 -2
View File
@@ -54,7 +54,7 @@ for (const tokenId of ['zero', 'three', 'five']) {
});
}
void test('Basic keeps foreign-only marker endpoints and fresh native placement remains unavailable', () => {
void test('Basic keeps foreign-only endpoints while Advanced permits a fresh native marker', () => {
const f = fixture(), basic = { ...f.context, advanced: false };
const intent = { player: 'r', tokenId: 'zero', source: foreign, destination: native };
assert.throws(() => quoteRicheseHomeworldMarkerTransfer(basic, f.custody, intent, f.noField), HomeworldCustodyError);
@@ -62,8 +62,15 @@ void test('Basic keeps foreign-only marker endpoints and fresh native placement
{ tokenId: 'zero', controller: 'r', location: { homeworld: native } });
assert.throws(() => quoteRicheseHomeworldMarkerTransfer(basic, f.custody,
{ player: 'r', tokenId: 'zero', source: native, destination: other }, nativeMarker), HomeworldCustodyError);
const supply = createRicheseNoField(['zero', 'three', 'five']);
assert.throws(() => quoteRicheseHomeworldMarkerShipment(basic, f.custody,
{ player: 'r', tokenId: 'three', destination: native }, supply), HomeworldCustodyError);
const placed = quoteRicheseHomeworldMarkerShipment(f.context, f.custody,
{ player: 'r', tokenId: 'three', destination: native }, supply);
assert.equal(placed.cost, 1);
assert.deepEqual(placed.noField.deployed?.location, {homeworld:native});
assert.throws(() => quoteRicheseHomeworldMarkerShipment(f.context, f.custody,
{ player: 'r', tokenId: 'three', destination: native }, createRicheseNoField(['zero', 'three', 'five'])), HomeworldCustodyError);
{ player: 'r', tokenId: 'three', destination: native, forces: {normal:1, elite:0} }, supply), HomeworldCustodyError);
assert.throws(() => quoteRicheseHomeworldMarkerTransfer(f.context, f.custody,
{ player: 'r', tokenId: 'zero', source: foreign, destination: foreign }, f.noField), HomeworldCustodyError);
const allied: HomeworldShipmentContext = { ...f.context, players: f.context.players.map(seat =>