Add prepayment Guild rate Karama response

This commit is contained in:
Quintine committed 2026-09-29 15:32:49 +10:00
1 parent 745e4fa8ab
commit 8a23b5ccd2
17 files changed
+567 -21

No files matched your search

+8 -1
View File
@@ -297,7 +297,14 @@ for (const cancel of [false, true])
for (const route of ['reserve', 'cross'] as const) {
const f = await fixture(route, true);
try {
await f.action(0, f.shipment);
const announced = await f.action(0, f.shipment);
if (route === 'reserve') {
assert.equal(announced.response?.kind, 'guildRate');
assert.equal(announced.players[0].spice, 20);
assert.equal(announced.players[0].shipped, false);
const allowed = await f.action(2, { type: 'passResponse' });
assert.equal(allowed.response?.kind, 'guildIncome');
}
const pending = await restored(f);
paidOnce(f, pending, 19);
assert.equal(pending.response?.kind, 'guildIncome');