Support Advanced native Homeworld return
Verify and publish checkpoint container / container (push) Successful in 11m10s
Verify and publish checkpoint container / container (push) Successful in 11m10s
This commit is contained in:
1 parent
1cf90f1328
commit
89569e92a1
14 files changed
+429
-39
No files matched your search
@@ -105,13 +105,13 @@ void test('Homeworld public shipment quote preserves exact native and foreign so
|
||||
assert.deepEqual(view, before);
|
||||
});
|
||||
|
||||
void test('public shipment options reject own, allied, depleted, mixed foreign, stale and unfunded orders', () => {
|
||||
void test('public shipment options allow Advanced native return and reject allied, depleted, mixed foreign, stale and unfunded orders', () => {
|
||||
const { view } = fixture();
|
||||
const good = { 'homeworld:emperor': { normal: 2, elite: 0 } };
|
||||
assert.equal(
|
||||
homeworldShipmentChoice(view, 'homeworld:emperor:salusa', good).action,
|
||||
null,
|
||||
);
|
||||
const nativeReturn = homeworldShipmentChoice(view, 'homeworld:emperor:salusa', good);
|
||||
assert.equal(nativeReturn.action?.destination, 'homeworld:emperor:salusa');
|
||||
assert.equal(nativeReturn.cost, 2);
|
||||
assert.equal(homeworldShipmentChoice(view, 'homeworld:emperor', good).action, null);
|
||||
assert.equal(
|
||||
homeworldShipmentChoice(view, 'homeworld:atreides', {
|
||||
'homeworld:guild': { normal: 5, elite: 0 },
|
||||
@@ -439,7 +439,7 @@ void test('Guild return controls and policy preserve foreign source custody and
|
||||
busy: false,
|
||||
}),
|
||||
);
|
||||
assert.match(html, /Guild may also return a foreign garrison to Junction/);
|
||||
assert.match(html, /You may return a foreign garrison to your own Homeworld/);
|
||||
assert.match(html, /Junction · return to your Homeworld/);
|
||||
assert.match(html, /Guild pays one spice per two forces, rounded up/);
|
||||
assert.doesNotMatch(html, /Your own Homeworld cannot/);
|
||||
|
||||
Reference in new issue
Block a user