Pie in the Sky: the Founder's antics make markets jumpy, then it wears off
- Every 60 to 120 days while a rocket company exists (the first 90 days after the plan starts), the Founder does something daft: a post, a gasp toast and a temporary effect (99-pie-jitters.js). A once-a-game antic takes orbit billing down for 3 to 5 days (no orbit income, then a restore post); a 3 a.m. spree (orbit offers x0.6 and a 4-point orbit mood dip for 14 days); a fight with a regulator (a landing-rights spat via pieSpatStart in a country with a dish or rights, within the spat limit); a leaked launch date (insurance 8% -> 14% for 30 days); Mars next year (offers x1.5 for 14 days, a promise like the others whose slip cancels the unhappiest 2% of orbit customers). - Market jitters (S.pie.founder.jit, 0..1): each antic bumps it, it fades by 1/30 a day, and while high it lowers orbit offer odds (up to -30%) and holds orbit happiness under 100-25*jit (never low enough to cancel at renewal). The Company tab shows one line and a small meter next to the feed. - Rule O5: harm only with pieChaos(); with chaos off he only posts. Dice only with a company. - Saves: new founder fields in pieBlank, repaired in pieSanitize (pieAnticFix); old saves load calm. - Insurance button shows the current premium (pie.ins_on_p replaces pie.ins_on). Agent docs updated. - pie-balance: compute() also reruns when orbit billing goes down or comes back. - tests/pie-founder.test.js: each antic, decay, once-only billing outage, chaos off, saves, 360 px.
This commit is contained in:
parent
9d74873edb
commit
2243280aff
17 changed files with 510 additions and 21 deletions
|
|
@ -109,7 +109,9 @@ function pieMoney(X,R2,V){let rev=0;const sf={},flows=[];
|
|||
for(const o of X.bhNo)bh.push({city:o.city,land:null,g:0,cap:0,why:o.why});
|
||||
// Patchy-sky customers (99-pie-patchy.js): a revenue line before a crust carries anything, handed over as it does.
|
||||
const patchy=piePatchy(X.ds);rev+=patchy.mo;
|
||||
V.orbit=rev;R2.pie={rev,patchy,sf,gs:X.gs,isl:X.isl,used,term:X.gsBw,hubs:X.hubs,sky:X.up.length,flows,bh,...pieLoads(X,flows,used,term,bhG)};
|
||||
// The billing database is down (the Founder's antics, 99-pie-jitters.js): the sky carries on, nobody is invoiced.
|
||||
const billOff=pieBillOff()?rev:0;if(billOff)rev=0;
|
||||
V.orbit=rev;R2.pie={rev,billOff,patchy,sf,gs:X.gs,isl:X.isl,used,term:X.gsBw,hubs:X.hubs,sky:X.up.length,flows,bh,...pieLoads(X,flows,used,term,bhG)};
|
||||
// For the lazy fiber comparison (pieFiberMs): the graph of this compute, kept out of JSON.
|
||||
Object.defineProperty(R2.pie,'_x',{value:{adj:X.adj,fm:{}}});}
|
||||
// A sky circuit for the Traffic tab and the traceroute: entry and exit, the dishes it lands at, and each hop through space.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue