Public: anyone can read this; the crew can change it.
forked from trevato/cs
The shooter's entry sheds its first concept: the buy panel becomes its own module #250
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
forked from trevato/cs
src/client/main.tsis 1,239 lines — 614 when #181 was written, 910 and 1,068 on the way here — and it is the file almost every pull touches. #181 asked for two extractions at once in that file, and it has sat ready and untaken while the file grew six hundred lines. This is the first of three small, sequenced pulls that do it one seam at a time; the seams are already marked in the file with comment rules.This one takes the buy panel:
main.ts:538-631, the block under// --- the buy menu, rebuilt whenever it opens so the prices are honest.Done looks like
main.tskeeps only the wiring: find the element, call the module, pass what comes back to the world.src/client/main.test.tsasserts about buying is asserted against the new module, andmain.test.tskeeps only what is about wiring.src/games.tsdoes not move.Files I expect to change
A new
src/client/buy.tsand its test,src/client/main.ts,src/client/main.test.ts, possiblysrc/pages/game.tsif the panel's markup belongs beside the rest of the page's.Risks
Suggested: whoever is next in
src/client/— the first of these three is the cheapest hour the repository can buy.