${tr('hud_and_panels.no_open_offers_right_now_businesses')}
`; for(const o of S.offers.slice().sort((a,b)=>a.exp-b.exp)){const has=bHas(o); diff --git a/src/game/93-ui/58-sales-panel.js b/src/game/93-ui/58-sales-panel.js new file mode 100644 index 0000000..9204186 --- /dev/null +++ b/src/game/93-ui/58-sales-panel.js @@ -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 `${tr('sales.intro')}
`; + if(!rule('clock'))h+=`${tr('ops.no_clock')}
`;else if(!salesCanHire()&&!p)h+=`${tr('sales.locked',{lv:SALES_LV})}
`; + h+=Object.entries(SALES).map(([id,P])=>{const here=p===id; + const act=here?(id==='ceo'?(L.vp?`${tr('sales.vp_coming',{n:Math.max(0,L.vp-S.day)})}`:btn(tr('sales.ask_vp',{cost:fmt$(SALES_VP)}),'salesVp',{},'ghost sm',S.cash${tr('sales.one_at_a_time')}
`; + openModal(h,'ops');} diff --git a/src/i18n/en.js b/src/i18n/en.js index cd6de57..eb68e4d 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -3903,6 +3903,42 @@ "rules.rules_are_locked_for_this_network":"{rules}: rules are locked for this network.", "rules.the_real_thing_your_pager_has":"The real thing. Your pager has opinions.", "rules.your_pager_never_sleeps":"Your pager never sleeps.", +"sales.ask_vp":"Ask the board for a VP of Sales · {cost}", +"sales.at_desk":"{name} runs sales", +"sales.ceo_d":"Free, and sure of it. Every couple of months signs a huge deal on the golf course at 30% off, often with a promise nobody checked, and now and then signs an offer you declined. Has opinions. Cannot be fired.", +"sales.ceo_golf":"The CEO signed {name} on the golf course: {bw} in {city} for {price}/mo, 30% off list.", +"sales.ceo_n":"The CEO, who sells better than anyone", +"sales.ceo_override":"You declined {name}, but the CEO had already shaken hands on it. They are now a customer.", +"sales.ceo_promised":"He also promised: {req}.", +"sales.ceo_s":"the CEO", +"sales.ceo_say_airport":"Just landed. Signed nothing, but I had a very good feeling about the lounge Wi-Fi.", +"sales.ceo_say_blockchain":"Have we thought about putting the routing table on a blockchain?", +"sales.ceo_say_golf":"The best deals happen on the ninth hole. The NOC should play more golf.", +"sales.ceo_say_mbps":"Why do we sell gigabits? Megabits sound like more.", +"sales.ceo_say_napkin":"I priced the next deal on a napkin. Engineering can work out the details.", +"sales.ceo_say_synergy":"We don't sell bandwidth, we sell synergy. Put that on the website.", +"sales.ceo_says":"The CEO: “{say}”", +"sales.ceo_took_over":"{name} has taken over sales personally. He is sure he sells better than anyone.", +"sales.commission":"{name} signed. Commission for the shark: {cost}.", +"sales.desk":"Sales desk", +"sales.eng_booked":"{name} registered you for {conf} in {city} ({cost}). They already have the lanyard.", +"sales.eng_d":"Was a network engineer, now has a lanyard for every NOG. Books you into each one (you pay the ticket), brings plenty of small and mid deals but never the really big ones, and only sells what the network can do, so customers stay. The nerds love Dave. Haggles badly.", +"sales.eng_n":"The engineer turned salesdroid", +"sales.eng_s":"Dave", +"sales.fired":"{name} has cleared their desk. The sales desk is free.", +"sales.hire_sales":"Hire sales", +"sales.hired":"{name} joined sales. Expect deals in their style.", +"sales.intro":"One person runs sales at a time. Each brings deals in their own way, and the customers they sign remember it when their contract comes up.", +"sales.let_ceo":"Let the CEO run it", +"sales.locked":"The sales desk opens at customer level {lv}.", +"sales.one_at_a_time":"One at a time: let them go to hire someone else.", +"sales.pitch":"One salesperson brings in deals their own way. Pick who.", +"sales.shark_d":"Lands the biggest deals at a quarter more, and takes a month of each deal as commission. Oversells: half of them come with a promise your network does not keep yet, and those customers leave sooner. Ignores the nerds: no technical customers, no meetings, and peering desks want a quarter more traffic from you. Wins most haggles.", +"sales.shark_n":"The shark", +"sales.shark_s":"Chad", +"sales.vp_arrived":"The VP of Sales has started, and the CEO has gone back to strategy. The sales desk is free: hire someone.", +"sales.vp_asked":"The board agreed, after lunch. A VP of Sales starts in {n} days; until then the CEO keeps selling.", +"sales.vp_coming":"A VP of Sales takes over in {n} days.", "save.cash_in_the_bank":"{cash} in the bank", "save.import_failed_err":"Import failed.