Pie in the Sky: a full constellation pays back in about seven years
Rule O7's payback half is now played through the game loop (tests/pie-balance.test.js): the big-network save runs a full lasered Shortcrust by a sensible policy until its books balance, in 5 to 10 years (6.3 on seed 7; 7.4 and 6.9 on seeds 11 and 3). The static formula is gone. Retune: pies $0.5M (+$0.25M lasers), from $1M (+$0.5M); landing rights $12,000 per eyeball up to $100M a year, from $28,000 up to $200M; orbit rates x1.25 (pizza 25k, flywifi 36k, boat 27.5k, marsorb 44k); PIE_SELL 0.25 -> 0.4; PIE_OFFER_RATE 1/6 -> 1/3.
This commit is contained in:
parent
46ba4e04d2
commit
1de0723c35
9 changed files with 103 additions and 45 deletions
|
|
@ -4,10 +4,10 @@
|
|||
of the game. The economy and the daily tick are in 60-features/99-pie-in-the-sky.js. */
|
||||
const PIE_MUL=1;
|
||||
const PIE_CO=250e6,PIE_CO_MO=5e6,PIE_FAC=1e9,PIE_FAC_MO=8e6,PIE_FAC_MONTH=120,PIE_STOCK_MAX=480,
|
||||
PIE_PIE=1e6,PIE_LAS=0.5e6,PIE_PAD=400e6,PIE_PAD_MO=2e6,PIE_PAD_MAX=6,PIE_EQ=0.15,
|
||||
PIE_PIE=0.5e6,PIE_LAS=0.25e6,PIE_PAD=400e6,PIE_PAD_MO=2e6,PIE_PAD_MAX=6,PIE_EQ=0.15,
|
||||
PIE_REUSE=500e6,PIE_HEAVY=3e9,PIE_HEAVY_TESTS=3,PIE_BOOST=40e6,PIE_BOOST_MAX=20,PIE_BOOSTERS=6,PIE_INS=0.08,
|
||||
PIE_DISH=25e6,PIE_ANT=2e6,PIE_ANT_MAX=16,PIE_ANT_G=20,PIE_DISH_MO=3e5,PIE_DISH_MAX=200,
|
||||
PIE_LIC_MIN=10e6,PIE_LIC_MAX=200e6,PIE_LIC_DAYS=360,PIE_LEOIX=50e6,PIE_LEOIX_MO=1e6,PIE_PARTY=2e6,
|
||||
PIE_LIC_MIN=10e6,PIE_LIC_MAX=100e6,PIE_LIC_P=12000,PIE_LIC_DAYS=360,PIE_LEOIX=50e6,PIE_LEOIX_MO=1e6,PIE_PARTY=2e6,
|
||||
PIE_QUIET=90,PIE_PREP=7,PIE_Q_MAX=40,PIE_COHORTS=240,PIE_POSTS=20,PIE_RAW=0.4,PIE_BAKED=0.6,PIE_SPARE=1.1,PIE_WEAR=0.3;
|
||||
// In generation order. fail: chance a launch is lost (x chaos); land: chance a reused booster does not come back.
|
||||
const ROCKETS={
|
||||
|
|
@ -63,7 +63,7 @@ function pieCoast(c){if(!isCity(c))return false;if(PIE_COAST.has(c))return PIE_C
|
|||
// Launching nearer the equator saves fuel: up to 15% off a launch, nothing above 45 degrees.
|
||||
const pieEq=c=>PIE_EQ*clamp((45-Math.abs(CITY[c].lat))/35,0,1);
|
||||
// Landing rights by market size: the eyeballs of every city in the country.
|
||||
const pieLicPrice=cc=>Math.round(clamp(PIE_LIC_MIN+CITIES.reduce((a,c)=>a+(c.cc===cc?c.P:0),0)*28000,PIE_LIC_MIN,PIE_LIC_MAX)/1e6)*1e6;
|
||||
const pieLicPrice=cc=>Math.round(clamp(PIE_LIC_MIN+CITIES.reduce((a,c)=>a+(c.cc===cc?c.P:0),0)*PIE_LIC_P,PIE_LIC_MIN,PIE_LIC_MAX)/1e6)*1e6;
|
||||
// The feature is here: unlocked by becoming Tier 1 in a save of this version, or open gates (sandbox). Never in puzzles,
|
||||
// the Architect or scenarios.
|
||||
function pieOn(){return !!S&&!S.scn&&S.mode!=='puzzle'&&(!!S.pie||gatesOpen());}
|
||||
|
|
|
|||
|
|
@ -34,10 +34,10 @@ const BIZ_T={
|
|||
// satellite operator oversubscribes two hundredfold (two hundred homes at $100 a month share one Gbps). The prices set
|
||||
// the payback of a full crust (rule O7: never under 5 years, 6 to 10 for a strong network).
|
||||
// share: the most of the sky's market (pieMarket()) that kind may hold; there are only so many airlines.
|
||||
pizza:{l:tr('businesses.pizza_homes_and_boats_on_orbit'),opts:[50,100,200,400],rate:20000,orbit:true,lv:1,names:['Deep Dish Rural Broadband','Crust Mile Connect','Topping Off Telecom','Extra Cheese Islands Net','Slice of Life Homesteads','Calzone Ranch Wi-Fi','Thin Crust Tundra Net','Margherita Marina Moorings','Anchovy Atoll Online','Stuffed Crust Station Hands']},
|
||||
flywifi:{l:tr('businesses.flywifi_airline_wi_fi'),opts:[20,50,100,200],rate:29000,orbit:true,las:true,share:0.2,lv:1,names:['Jet Lag Wi-Fi','Wi-Fly Away','Seatback Streaming Co.','Tray Table Upright Telecom','Cabin Pressure Networks','Mile High Megabits','Overhead Bin Broadband','Turbulence Tolerant Transit']},
|
||||
boat:{l:tr('businesses.cruise_ship_connectivity'),opts:[100,200,400,800],rate:22000,orbit:true,lv:1,names:['Buffet Overboard Cruises','The Love Bandwidth','Poop Deck Packets','Midnight Buffet Mbps','Shuffleboard Shipping Lines','All-You-Can-Stream Cruises','Iceberg Ahead Voyages']},
|
||||
marsorb:{l:tr('businesses.mars_mission_over_your_pies'),opts:[50,100,200],rate:35000,orbit:true,las:true,share:0.05,lv:13,names:['Red Planet Relay (Orbital)','Olympus Mons Uplink (Orbital)','Light-Minute Logistics (Orbital)','Interplanetary Ping Society (Orbital)','Rover Over Pies']},
|
||||
pizza:{l:tr('businesses.pizza_homes_and_boats_on_orbit'),opts:[50,100,200,400],rate:25000,orbit:true,lv:1,names:['Deep Dish Rural Broadband','Crust Mile Connect','Topping Off Telecom','Extra Cheese Islands Net','Slice of Life Homesteads','Calzone Ranch Wi-Fi','Thin Crust Tundra Net','Margherita Marina Moorings','Anchovy Atoll Online','Stuffed Crust Station Hands']},
|
||||
flywifi:{l:tr('businesses.flywifi_airline_wi_fi'),opts:[20,50,100,200],rate:36000,orbit:true,las:true,share:0.2,lv:1,names:['Jet Lag Wi-Fi','Wi-Fly Away','Seatback Streaming Co.','Tray Table Upright Telecom','Cabin Pressure Networks','Mile High Megabits','Overhead Bin Broadband','Turbulence Tolerant Transit']},
|
||||
boat:{l:tr('businesses.cruise_ship_connectivity'),opts:[100,200,400,800],rate:27500,orbit:true,lv:1,names:['Buffet Overboard Cruises','The Love Bandwidth','Poop Deck Packets','Midnight Buffet Mbps','Shuffleboard Shipping Lines','All-You-Can-Stream Cruises','Iceberg Ahead Voyages']},
|
||||
marsorb:{l:tr('businesses.mars_mission_over_your_pies'),opts:[50,100,200],rate:44000,orbit:true,las:true,share:0.05,lv:13,names:['Red Planet Relay (Orbital)','Olympus Mons Uplink (Orbital)','Light-Minute Logistics (Orbital)','Interplanetary Ping Society (Orbital)','Rover Over Pies']},
|
||||
provedor:{l:tr('businesses.provedor_small_regional_isp'),opts:[5,10,20,40],rate:20,br:true,names:['Provedor Capivara Net','Fibra do Sertão','Rapidinho Telecom','Net Jabuticaba','Caipirinha Online','Wi-Fi do Zé','Pão de Queijo Fibra','Açaí Net','Tucano Telecom','Forró Fibra','Saci Net','Brigadeiro Banda Larga','Mandioca Online','Churrasco Connect']},
|
||||
};
|
||||
const LEVELS=[
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
your crusts can sell (PIE_SELL of their capacity, the rest flies over ocean and empty land) caps what is signed and
|
||||
on offer, so orbit income cannot outgrow the sky (like F5). Remote towns (no POP of yours, few people) are the first
|
||||
to call: Pitcairn, the Arctic, the outer islands. */
|
||||
const PIE_SELL=0.25,PIE_REMOTE=0.6,PIE_OFFER_RATE=1/6,PIE_OFFERS=2;
|
||||
const PIE_SELL=0.4,PIE_REMOTE=0.6,PIE_OFFER_RATE=1/3,PIE_OFFERS=2;
|
||||
// Orbit customers know the sky has bad weeks: without service they lose at most PIE_PATIENCE happiness a day (the day tick),
|
||||
// so they grumble, then fume, and cancel only after about a month of nothing, not in three days like a fiber customer.
|
||||
const PIE_PATIENCE=4;
|
||||
|
|
@ -27,5 +27,5 @@ function pieSpawn(t){const T=BIZ_T[t],min=T.opts[0],ok=pieCands(t).filter(c=>{if
|
|||
const left=Math.min(pieRoom(t),pieServe(city,t).left-S.offers.reduce((a,o)=>a+(BIZ_T[o.type].orbit?o.bw:0),0)),opts=T.opts.filter(g=>g<=left),bw=opts.length?pick(opts):0;if(!bw)return;
|
||||
const list=T.names.filter(n=>!S.usedNames.includes(n)),name=list.length?pick(list):pick(T.names);useName(name);
|
||||
S.offers.push({id:uid(),city,city2:null,name,type:t,bw,rate:T.rate,reqs:[],exp:S.day+40});}
|
||||
// Orbit has its own sales desk, so the ground's offers keep their odds: about one call a week, two on the table at most.
|
||||
// Orbit has its own sales desk, so the ground's offers keep their odds: about one call every three days, two on the table at most.
|
||||
PIE_ON.day.push(()=>{if(S.offers.filter(o=>BIZ_T[o.type].orbit).length>=PIE_OFFERS)return;const t=pieOfferTypes();if(t.length&&Math.random()<PIE_OFFER_RATE)pieSpawn(pick(t));});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue