Island Wi-Fi for 18 groups of outer islands, by satellite and spur cable (#83)
Each zone (Vanua Levu & Taveuni off Suva, the Out Islands off Nassau, and 16 more) is a pool of island homes at your POP in its city: no node and no link on the map, its Gbps join the city's demand. Rent backhaul at the city's teleport (about 35% sign up over GEO, 75% over MEO, 90% over Starblink from a gateway there) or, from level 3, lay a spur cable and everyone may sign up. The first order brings the island kit. Islanders pay island prices, their homes are IPv6-only in the NAT64 pool, and investors on a revenue share take their cut. A spur can be cut for weeks (failure 'wspur', chaos only): a satellite kept beside it carries the islands. Zones are off in puzzles, the Architect, scenarios and below level 2. The satellite geometry works on points now (satSeesAt, satPairAt, satKmAt; the city functions wrap them, with the same answers). Starblink serves a zone only from a gateway in its own city (16 of 18; a gateway anywhere in reach would serve the same 16), with its storm and rival rule; Nunavut and Southeast Alaska stay on GEO. Rules W6 and F12.
This commit is contained in:
parent
7967a29083
commit
6f0c080875
44 changed files with 1087 additions and 65 deletions
|
|
@ -30,11 +30,13 @@ test('SEND is the agent\'s game commands without the puzzles, teCheck, traceRun
|
|||
});
|
||||
|
||||
/* A rich network with something behind every two-click button: the big fixture, an intern, a sales head, a scrubbing
|
||||
center, a teleport with a LEO gateway, an own exchange. Its S also goes to the realm, so both sides start the same. */
|
||||
center, a teleport with a LEO gateway, an own exchange, an island Wi-Fi zone with a circuit. Its S also goes to the
|
||||
realm, so both sides start the same. */
|
||||
function rich() {
|
||||
const P = page({ save: bigScenic() });
|
||||
P.ev(`S.lvl=Math.max(S.lvl,6);ACT.opsHire({id:'kevin'});closeModal();ACT.salesHire({id:'eng'});closeModal();
|
||||
ACT.buildScrub({city:'fra'});closeModal();ACT.teleBuild({city:'sea'});closeModal();ACT.teleLeo({city:'sea'});closeModal();UI.confirm=null;UI.sel=null;
|
||||
ACT.buildScrub({city:'fra'});closeModal();ACT.teleBuild({city:'sea'});closeModal();ACT.teleLeo({city:'sea'});closeModal();
|
||||
ACT.buildPop({city:'suv'});ACT.teleBuild({city:'suv'});ACT.wispSat({z:'vanualevu',bird:'kac1',g:2});closeModal();UI.confirm=null;UI.sel=null;
|
||||
S.day=Math.max(S.day,IP4_HOLD+30);S=migrate(JSON.parse(JSON.stringify(S)));compute();`);
|
||||
// (Address blocks are held two years before they may be sold: these were bought long ago.)
|
||||
return P;
|
||||
|
|
@ -74,6 +76,8 @@ test('two-click buttons: the first click arms SRV_ARM\'s key (or waits for ok),
|
|||
ev('UI.confirm=null;UI.sel=null;closeModal();');
|
||||
// (The gateway closes before its teleport, which would take it along.)
|
||||
Object.assign(found, { rmScrub: { city: 'fra' }, teleLeoRm: { city: 'sea' }, teleRm: { city: 'sea' }, cancelVxc: found.cancelVxc || { id: 'nolink' }, dkOptOut: found.dkOptOut || { city: 'fra', n: 'Nobody' } }, found);
|
||||
// (A zone's circuit is cancelled before the zone, which would take it along.)
|
||||
for (const a of ['wispSatRm', 'wispRm']) { const v = found[a] || { z: 'vanualevu' }; delete found[a]; found[a] = v; }
|
||||
const missing = Object.keys(A.CONFIRM).filter((a) => !found[a] && a !== 'repayLoan');
|
||||
assert.deepEqual(missing, [], 'a button for every two-click act');
|
||||
const changed = {};
|
||||
|
|
@ -99,7 +103,7 @@ test('two-click buttons: the first click arms SRV_ARM\'s key (or waits for ok),
|
|||
if (changed[a]) assert.equal(r.outcome, 'applied', a);
|
||||
}
|
||||
// The ones with a real target were really done.
|
||||
for (const a of ['cancelTransit', 'cancelIx', 'cancelPni', 'rmLink', 'rmSite', 'dropBiz', 'salesFire', 'opsFire', 'rmScrub', 'teleLeoRm', 'teleRm', 'connCancel']) if (found[a]) assert.equal(changed[a], true, `${a} did its thing`);
|
||||
for (const a of ['cancelTransit', 'cancelIx', 'cancelPni', 'rmLink', 'rmSite', 'dropBiz', 'salesFire', 'opsFire', 'rmScrub', 'teleLeoRm', 'teleRm', 'wispSatRm', 'wispRm', 'connCancel']) if (found[a]) assert.equal(changed[a], true, `${a} did its thing`);
|
||||
assert.deepEqual(P.errors, []);
|
||||
});
|
||||
const closeAll = (ev) => ev('closeModal();');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue