A sales desk: the engineer turned salesdroid, the shark, or the CEO
From customer level 2, one person runs sales at a time, next to the NOC intern: - The engineer turned salesdroid ($9k/mo) books you into every network operators' meeting 30 days ahead at the usual ticket price, brings 40% more offers (half as many again while a meeting's glow lasts) but never the huge deals, and their customers leave less often at renewal (half as often for the nerdy ones: HFT, ISPs, universities, L2). Haggles badly. - The shark ($15k/mo) brings bigger sizes at 25% more, takes a month of each deal as commission, oversells half of them with a requirement the network does not meet yet, never brings technical customers, makes selective peering desks want 25% more traffic, wins most haggles, and their customers leave 50% more often. - The CEO (free) signs the biggest internet customer the network can take on the golf course every 50-80 days at 30% off, often with a promise nobody checked, signs about a third of the offers you decline anyway, and has opinions. He cannot be fired: a board meeting brings a VP of Sales a month later. Customers remember who signed them (by), which the renewals read. Every roll is a hash of the day or the deal, so games without a salesperson keep their random stream. The differential fuzz also leaves out buttons for actions main does not have yet.
This commit is contained in:
parent
b9860edc77
commit
27c4977412
25 changed files with 470 additions and 14 deletions
|
|
@ -42,7 +42,7 @@ function renderLeft(){checkLayer();
|
|||
h+=badgeGrid();
|
||||
}else if(UI.left==='deals'){
|
||||
{const st=custStats();if(st.n)h+=`<div class="row" style="margin-bottom:8px"><div class="grow"><div class="nm">${tr('common.your_customers')} <span class="meta">${st.n} · ${tr('hud_and_panels.happiness_p',{p:Math.round(st.avg)})}</span></div><div class="bar ${moodCls(st.avg)}"><i style="width:${st.avg}%"></i></div>${st.unhappy?`<div class="why">${trn('hud_and_panels.n_unhappy_customer_price_mo_at',st.unhappy,{price:fmt$(st.risk)})}</div>`:''}</div>${btn(st.unhappy?tr('common.see_who'):tr('common.all_customers'),'custOpen',{sad:st.unhappy?1:0},st.unhappy?'pink sm':'ghost sm')}</div>`;}
|
||||
h+=clDealsHtml()+confSection()+seatSection();
|
||||
h+=salesCard()+clDealsHtml()+confSection()+seatSection();
|
||||
{const lv=S.lvl||1,nx=LEVELS[lv];h+=`<div class="inc" style="background:#FFF6CF"><div class="nm">${tr('hud_and_panels.customer_level_lv_name',{lv,name:LEVELS[lv-1].n})}</div><div class="meta">${nx?tr('hud_and_panels.next_req_unlocks_what',{req:nx.req,what:lc1(nx.unlock)}):tr('common.every_customer_type_is_unlocked_go')}</div></div>`;}
|
||||
if(!S.offers.length)h+=`<p class="empty">${tr('hud_and_panels.no_open_offers_right_now_businesses')}</p>`;
|
||||
for(const o of S.offers.slice().sort((a,b)=>a.exp-b.exp)){const has=bHas(o);
|
||||
|
|
|
|||
17
src/game/93-ui/58-sales-panel.js
Normal file
17
src/game/93-ui/58-sales-panel.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// The sales desk in Deals, and its sheet: the three kinds of salesperson, who is at the desk, and what they cost.
|
||||
function salesCard(){if(!S||!rule('clock'))return '';const p=slP(),L=S.sales||{};
|
||||
return `<div class="ops-card"><div class="nm">${p?`${SALES[p].i} ${esc(tr('sales.at_desk',{name:slCap()}))}`:`💼 ${tr('sales.desk')}`}</div>
|
||||
<div class="meta">${p?(L.vp?tr('sales.vp_coming',{n:Math.max(0,L.vp-S.day)}):tr(SALES[p].d)):salesCanHire()?tr('sales.pitch'):tr('sales.locked',{lv:SALES_LV})}</div>
|
||||
<div class="btns">${btn(p?tr('sales.desk'):tr('sales.hire_sales'),'salesOpen',{},p?'sm':'pink sm',!p&&!salesCanHire())}</div></div>`;}
|
||||
function salesModal(){if(!S)return;const p=slP(),L=S.sales||{};
|
||||
let h=`<div style="display:flex;align-items:center"><div><div class="eyebrow">${tr('common.deals')}</div><h2 style="font-size:26px">${tr('sales.desk')}</h2></div><button class="x" data-act="closeModal" aria-label="${tr('common.close')}">×</button></div>`;
|
||||
h+=`<p class="tagline">${tr('sales.intro')}</p>`;
|
||||
if(!rule('clock'))h+=`<p class="why">${tr('ops.no_clock')}</p>`;else if(!salesCanHire()&&!p)h+=`<p class="why">${tr('sales.locked',{lv:SALES_LV})}</p>`;
|
||||
h+=Object.entries(SALES).map(([id,P])=>{const here=p===id;
|
||||
const act=here?(id==='ceo'?(L.vp?`<span class="tag st on">${tr('sales.vp_coming',{n:Math.max(0,L.vp-S.day)})}</span>`:btn(tr('sales.ask_vp',{cost:fmt$(SALES_VP)}),'salesVp',{},'ghost sm',S.cash<SALES_VP))
|
||||
:btn(UI.confirm==='salesFire'?tr('ops.really_fire'):tr('ops.fire'),'salesFire',{},'ghost sm'))
|
||||
:p?'':btn(id==='ceo'?tr('sales.let_ceo'):tr('ops.hire_mo',{price:fmt$(P.mo)}),'salesHire',{id},'pink sm',!salesCanHire()||!rule('clock')||S.cash<P.mo);
|
||||
return `<div class="ops-o${here?' on':''}"><div class="ops-h"><span class="ops-i" aria-hidden="true">${P.i}</span><div class="grow"><div class="nm">${tr(P.n)}</div>
|
||||
<div class="meta">${tr(P.d)}</div>${here&&id!=='ceo'?`<div class="meta">${tr('ops.salary',{price:fmt$(P.mo),d:dateStr(L.hired||0)})}</div>`:''}${act?`<div class="btns">${act}</div>`:''}</div></div></div>`;}).join('');
|
||||
if(p&&p!=='ceo')h+=`<p class="note">${tr('sales.one_at_a_time')}</p>`;
|
||||
openModal(h,'ops');}
|
||||
Loading…
Add table
Add a link
Reference in a new issue