Pie in the Sky: dips in orbit hurt instead of emptying the sky
A crust carries a share of its traffic from 40% coverage, growing to all of it at 60% (pieCarry/pieCap), instead of nothing until 60%. Pies wear out over the last 30% of their life (pieAlive), deterministic, so a launch month no longer deorbits on one day. Storms take 2-10% and food fights 5-10% of a crust (PIE_HIT), down from up to 40% and 20%. Orbit customers lose at most PIE_PATIENCE happiness a day without service, about a month to cancel.
This commit is contained in:
parent
48d2cedbee
commit
d7d5d21372
21 changed files with 135 additions and 51 deletions
|
|
@ -103,15 +103,19 @@ const checks = (dom) => Object.fromEntries([...doc(dom).querySelectorAll('#modal
|
|||
test('an empty sky says why: a half-baked crust', () => {
|
||||
const { dom, ev, errors } = load();
|
||||
ev('window.innerWidth=360');
|
||||
world(ev, { n: 'Math.floor(CRUSTS.short.full*0.41)' });
|
||||
world(ev, { n: 'Math.floor(CRUSTS.short.full*0.39)' });
|
||||
term(ev, 'pz', 'dub');
|
||||
ev("ACT.pieTab({t:'traffic'})");
|
||||
const txt = doc(dom).querySelector('#modalCard').textContent;
|
||||
assert.match(txt, /Why is my sky empty\?/);
|
||||
assert.equal(checks(dom).baked, 'off');
|
||||
assert.match(txt, /Shortcrust \(550 km\) is 41% baked; it carries traffic from 60%/);
|
||||
assert.match(txt, /Shortcrust \(550 km\) is 39% baked; it carries traffic from 40%/);
|
||||
assert.equal(checks(dom).customers, 'on');
|
||||
ev('closeModal()');
|
||||
try {
|
||||
ev("S.pie.crusts.short.cohorts[0].n=CRUSTS.short.full/2;compute();ACT.pieTab({t:'traffic'})");
|
||||
assert.match(doc(dom).querySelector('#modalCard').textContent, /is 50% baked: half-baked, it carries 50% of its traffic, all of it from 60%/);
|
||||
} finally { ev('closeModal()'); }
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue