Pie in the Sky: government money for rocket companies
A Gov tab in Pie Control with three state programmes: - Rural Digital Pie Fund: reverse auctions for towns only orbit reaches (a cut-off POP on backhaul, or a small town of your terminals). Ask 90%, 70% or 50% of the reserve against a rival; the lower ask is paid monthly for five years while the town stays 70% served (monthly average) from a 90-day deadline. One bad month warns, two revoke the award and claw back half of the last year's support. - Ex-Im Pie Bank: a BANKS loan of half the value of the pies flying and booked (at most 20% of a full Shortcrust, counted by O7), 1.5-2.5% over 60 months, never offered by the usual banks. Space covenants: launch n pies in a year, keep a pie dish in the lending country. A breach brings the bank's penalty, +3 points, a new launch deadline and, with chaos on, a "data stays home" or landing-rights spat there. - Pitcairn: served from orbit (backhaul or home terminals) at 90% of its demand, latency forgiven, the UK pays a $120k/mo satellite grant. Subsidies count in the orbit's books. tests/pie-gov.test.js covers the features; pie-balance.test.js gains a run with government money, which must pay back sooner by at most two years.
This commit is contained in:
parent
1de0723c35
commit
8b92adcaa8
23 changed files with 719 additions and 27 deletions
|
|
@ -28,6 +28,12 @@ Object.assign(ACT,{
|
|||
pieSafe:()=>{const P=pieGet();if(!P||!P.co)return;P.safe=!P.safe;sfx('click');pieRe();},
|
||||
pieName:()=>{const P=pieGet();if(!P||!P.co)return;const i=PIE_NAMES.indexOf(P.co.name);P.co.name=PIE_NAMES[(i+1)%PIE_NAMES.length];pieFounder(N_('pie.fp_rename'));pieRe();},
|
||||
pieRename:()=>{const P=pieGet(),el=$('pieNm');if(!P||!P.co||!el)return;const v=el.value.replace(/\s+/g,' ').trim().slice(0,40);if(!v)return;P.co.name=v;pieFounder(N_('pie.fp_rename'));pieRe();},
|
||||
// Government money (60-features/99-pie-subsidies.js): Pie Control's Gov tab, a bid, the Ex-Im loan.
|
||||
pieGovOpen:()=>{if(!S||pzOn()||!pieOn())return;UI.pieTab='gov';UI.confirm=null;pieModal();},
|
||||
pieBid:({id,f})=>{const P=pieGet();f=+f;const a=P&&P.gov.auc.find(x=>x.id===id);if(!a||!PIE_RDF_BIDS.includes(f))return;if(!pieCanBuild())return pieNo(tr('pie.why_not_t1'));
|
||||
a.bid=f;toast(tr('pie_gov.t_bid',{city:esc(CITY[a.city].name),mo:fmt$(Math.round(a.ask*f)),d:dateStr(a.close)}),'good');sfx('click');pieRe();},
|
||||
pieExim:()=>{const P=pieGet();if(!P||!P.co)return;if(!pieCanBuild())return pieNo(tr('pie.why_not_t1'));if(!pieEximTake())return pieRe();
|
||||
const l=pieEximLoan();toast(`<b>${tr('interface.amt_from_bank_has_landed',{amt:fmt$(l.amount),bank:esc(BANKS.exim.name)})}</b><br>${loanSummary(l)}`,'good');sfx('coin');pieRe();},
|
||||
pieTab:({t})=>{if(!PIE_TABS.includes(t))return;UI.pieTab=t;pieModal();},
|
||||
pieHi:({id})=>{if(typeof id!=='string')return;sfx('click');pieHiSet(id);},
|
||||
pieCity:({v})=>{if(!S||!S.pops[v])return;UI.pieCity=v;pieModal();},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue